:root {
    --taiga-primary: #CF8637;
    /* Taiga Brand Color */
    --taiga-primary-hover: #b56f26;
    --text-dark: #4A4A4A;
    /* Official Dark Text */
    --text-light: #7a7a7a;
    --bg-gradient-start: #fcfcfc;
    --bg-gradient-end: #f4f4f4;
    --glass-bg: rgba(255, 255, 255, 0.95);
    /* More solid, cleaner look */
    --border-radius: 15px;
    /* Official button radius */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Table Styles --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background-color: #f8f8f8;
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

th {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #fcfcfc;
}

.edit-btn-small {
    padding: 8px 15px;
    background-color: var(--taiga-primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn-small:hover {
    background-color: var(--taiga-primary-hover);
    transform: scale(1.05);
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
}

.close-btn:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 5px;
    color: var(--taiga-primary);
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 25px;
    display: block;
    margin-top: 0;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
    /* Success Green */
}

.toast.success i {
    color: #28a745;
    font-size: 1.2rem;
}

.toast.error {
    border-left-color: #dc3545;
    /* Error Red */
}

.toast.error i {
    color: #dc3545;
    font-size: 1.2rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
}

/* Container */
.glass-container {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Header */
header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 2px solid #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-divider {
    height: 30px;
    width: 1px;
    background-color: #ddd;
}

h1 {
    font-size: 1.1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 3px;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background-color: #fbfbfb;
}

/* Auth & Profile Styles */
.logout-link {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.logout-link:hover {
    color: #d9534f;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: var(--taiga-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--text-light);
}

.profile-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly squarer than pill */
    font-family: inherit;
    transition: border 0.2s;
    background: #fcfcfc;
}

.form-group input:focus {
    border-color: var(--taiga-primary);
    background: white;
    outline: none;
}

.disabled-input {
    background-color: #f4f4f4 !important;
    color: #888;
    border: 1px solid transparent !important;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 2rem 0;
    width: 100%;
}

.save-btn {
    width: 100%;
    padding: 15px;
    background: var(--taiga-primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(207, 134, 55, 0.3);
}

.save-btn:hover {
    background: var(--taiga-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(207, 134, 55, 0.4);
}