:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0f172a;
    --accent-color: #3b82f6;
    --text-light: #ffffff;
    --text-dark: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(148, 163, 184, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Vanta.js Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Silver animated logo */
.silver-logo {
    background: linear-gradient(
        135deg,
        #c0c0c0 0%,
        #f5f5f5 25%,
        #ffffff 50%,
        #f5f5f5 75%,
        #c0c0c0 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: silver-shine 3s linear infinite;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

@keyframes silver-shine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Glass morphism effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--shadow);
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    text-align: center;
}

.crm-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 20px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: var(--text-light);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.per-page-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

.per-page-control label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.per-page-control .per-page-suffix {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    white-space: nowrap;
}

.per-page-control select {
    background: rgba(30, 58, 138, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: var(--text-light);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.per-page-control select:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.75);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.pagination-container button,
.pagination-container span {
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-container button:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
}

.pagination-container button.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
    font-weight: 600;
}

.pagination-container button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-container span {
    border-style: dashed;
    cursor: default;
    padding: 8px 10px;
}

/* Alert Messages */
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fee;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #d4ffd4;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fffacd;
}

