@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    margin: 0;
    padding: 40px 20px;
    color: #2d3748;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container,
.login-container {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-container {
    max-width: 400px;
    margin-top: 80px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2 {
    color: #1a202c;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary,
button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.btn-danger {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-secondary {
    background: #718096;
}

/* Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Spacing between rows */
    margin-top: 10px;
}

th {
    text-align: left;
    padding: 15px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 20px 15px;
    background: #fff;
    border: none;
    vertical-align: middle;
}

tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

tr {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

tr:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Status Badges */
.status-active,
.status-inactive {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-active {
    background-color: #c6f6d5;
    color: #22543d;
}

.status-inactive {
    background-color: #fed7d7;
    color: #822727;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s;
    background: #f7fafc;
    font-size: 15px;
}

input:focus,
textarea:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: #fff5f5;
    color: #c53030;
    border-left: 4px solid #c53030;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }

    .header div {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 20px;
        border-radius: 15px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    td {
        padding: 10px 0;
        position: relative;
        padding-left: 40%;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }

    td:last-child {
        border-bottom: none;
    }

    td:before {
        position: absolute;
        top: 10px;
        left: 0;
        width: 35%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: #718096;
        content: attr(data-label);
        text-transform: uppercase;
        font-size: 12px;
    }

    /* Fix for mobile table corners */
    tr td:first-child,
    tr td:last-child {
        border-radius: 0;
    }
}
/* Login Page Specifics */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.login-container {
    margin-top: 0;
    width: 100%;
    max-width: 400px;
    padding: 50px 40px;
    text-align: left;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.login-icon i {
    font-size: 35px;
    color: #fff;
}

.login-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-container input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.1);
}

.login-container input:focus {
    background: #fff;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
}

