body {
    background: linear-gradient(135deg, #941136 0%, #111111 100%);
    background-attachment: fixed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #fff;
}

a {
    color: #FF384A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #dc134c;
    text-decoration: none;
}

.login {
    width: 100%;
    text-align: center;
}

.login .input-group {
    margin: 0px auto;
    margin-top: 20px;
    float: none;
}

.login i {
    color: gray;
}

.login .userlog {
    font-size: 50px;
    padding-top: 20px;
    color: #FF384A;
    animation-name: rotateInv;
    animation-timing-function: ease-in;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.al_load {
    margin: 0px auto;
    width: 100px;
    height: 100px;
    border: 5px solid #181818;
    border-radius: 50px;
    border-right-color: #FF384A;
    border-left-color: #FF384A;
    background-color: rgba(0, 0, 0, 0.3);
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.expired {
    animation-name: blink;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

@keyframes blink {
    0% {
        background-color: #ff4646;
    }
    50% {
        background-color: #ffffff;
    }
    100% {
        background-color: #ff4646;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotateInv {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-360deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.al_btn {
    padding: 15px 20px;
    margin-top: 10px;
    width: 150px;
    background-color: #181818;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 12px;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: block;
    text-decoration: none;
    opacity: 90%;
    animation: slideInLeft 0.5s ease-out;
}

.al_btn:hover {
    background-color: #FF384A;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.al_btn:nth-child(2) { animation-delay: 0.1s; }
.al_btn:nth-child(3) { animation-delay: 0.2s; }
.al_btn:nth-child(4) { animation-delay: 0.3s; }
.al_btn:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

.al_alert {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: white;
    width: 40%;
    padding: 15px 20px;
    margin: 0px auto;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.al_info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    width: 40%;
    padding: 15px 20px;
    margin: 0px auto;
    margin-top: 30px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login .fa-arrow-right {
    color: #FF384A;
    margin-left: 10px;
}

.login .al_btn {
    text-align: center;
    margin: 30px auto;
    display: block;
}

.al_btn.al_submit {
    margin-top: 30px;
    background-color: #28a745;
    color: white;
    border: none;
}

.al_btn.al_submit:hover {
    background-color: #20c997;
    color: white;
}

.al_btn.al_delete {
    margin-top: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
}

.al_btn.al_delete:hover {
    background-color: #bd2130;
    color: white;
}

/* Enhanced form styling */
.login .input-group {
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login .input-group .input-group-addon {
    background-color: #181818;
    color: white;
    border: none;
    font-weight: bold;
}

.login .input-group .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
}

.login .input-group .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 0 10px rgba(255, 56, 74, 0.3);
}

.login .input-group .form-control::placeholder {
    color: #ccc;
}

/* Add license form styling */
.input-group {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.input-group-addon {
    background-color: #181818;
    color: white;
    border: none;
    font-weight: bold;
    border-right: 2px solid #FF384A;
}

.btn-default {
    background-color: #181818;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-default:hover, .btn-default:focus {
    background-color: #FF384A;
    color: white;
}

.dropdown-menu {
    background-color: #181818;
    border: 1px solid #FF384A;
}

.dropdown-menu > li > a {
    color: white;
    transition: all 0.3s ease;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #FF384A;
    color: white;
}

.al_nav {
    background: rgba(0, 0, 0, 0.8);
    width: 240px;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    color: white;
    padding: 20px;
    backdrop-filter: blur(10px);
    border-right: 2px solid #941136;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 24px;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 40px;
    color: #FF384A;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.title img:hover {
    transform: scale(1.05);
}

.title i {
    font-size: 15px;
}

.content {
    padding: 30px;
    margin-left: 280px;
    margin-top: 20px;
    margin-right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    width: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

h2, h3 {
    margin-bottom: 15px;
    margin-top: 50px;
    color: #FF384A;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    margin-top: 0;
    font-size: 28px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

table th {
    background-color: #181818;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #FF384A;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

table tr:hover {
    background-color: rgba(255, 56, 74, 0.1);
    color: #ccc !important;
}

table tr:hover td {
    color: #ccc !important;
}

/* Bootstrap table-hover override */
.table-hover tbody tr:hover {
    background-color: rgba(255, 56, 74, 0.1) !important;
    color: #ccc !important;
}

.table-hover tbody tr:hover td {
    color: #ccc !important;
}

table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Form styling */
.form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 5px;
    padding: 10px;
    font-weight: bold;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #FF384A;
    box-shadow: 0 0 10px rgba(255, 56, 74, 0.3);
    color: white;
    outline: none;
}

/* Expiry dropdown specific styling */
.expiry-dropdown {
    background-color: rgba(24, 24, 24, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 0 5px 5px 0 !important;
    padding: 10px !important;
    font-weight: bold !important;
    min-width: 100px !important;
}

.expiry-dropdown:focus {
    background-color: rgba(24, 24, 24, 1) !important;
    border-color: #FF384A !important;
    box-shadow: 0 0 10px rgba(255, 56, 74, 0.3) !important;
    color: white !important;
    outline: none !important;
}

.expiry-dropdown option {
    background-color: #181818 !important;
    color: white !important;
    padding: 8px !important;
}

.expiry-dropdown option:hover,
.expiry-dropdown option:checked {
    background-color: #FF384A !important;
    color: white !important;
}

.form-control::placeholder {
    color: #ccc;
}

.form-control:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ccc;
}

/* Chart container styling */
canvas {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stats {
    position: relative;
    height: 400px;
    margin: 20px 0;
    color: white;
}

.stats canvas {
    max-width: 100%;
    height: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .al_nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    
    .content {
        margin-left: 20px;
        margin-top: 10px;
        padding: 20px;
    }
    
    .al_btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .login .input-group {
        width: 90% !important;
    }
    
    .al_alert, .al_info {
        width: 90%;
    }
}

/* Footer styling */
.content::after {
    content: "";
    display: block;
    margin-top: 50px;
}

.footer-watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
}

.footer-watermark:before {
    content: "Powered by SkyDyn.eu";
}

/* Additional form improvements */
h4 {
    color: #FF384A;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

label, span {
    color: white;
    font-weight: normal;
}

.al_form {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin: 20px 0;
}

.al_fin {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    text-align: center;
    color: white;
}

.al_fin h1 {
    color: #FF384A;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF384A;
    margin-right: 8px;
}

/* Text styling improvements */
p, div, span {
    color: white;
    line-height: 1.6;
}

/* Better visibility for disabled elements */
input:disabled, select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
