:root {
    --bg-dark: #07091A;
    --dark-blue: #0A1128;
    --royal-violet: #531CB3;
    --violet-light: #7E45E8;
    --neon-blue: #00F0FF;
    --glass-bg: rgba(10, 17, 40, 0.6);
    --glass-border: rgba(126, 69, 232, 0.3);
    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;
    --error: #FF3366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #091b4f;
    background-image: linear-gradient(55deg, #091b4f 0%, #3e1b8f 30%, #c83b9c 60%, #e0608b 82%, #fdd1c4 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

body.dashboard-body {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
}

/* Watermark Background */
.watermark-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Ctext x='10' y='22' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.1)'%3Eadmin@originaltopindia%3C/text%3E%3Ctext x='90' y='50' font-family='monospace' font-size='10' fill='rgba(255,255,255,0.1)'%3Eadmin@originaltopindia%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    transform: rotate(-15deg);
    opacity: 0.8;
}

/* Glassmorphism Login Container */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
}

.login-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}



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

.icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--royal-violet), var(--violet-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
    box-shadow: 0 0 20px rgba(126, 69, 232, 0.5);
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: 0.3s ease;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 15px 14px 45px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s ease;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--violet-light);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(126, 69, 232, 0.3);
}

.input-group input:focus ~ .input-icon {
    color: var(--violet-light);
}

.input-group input[readonly] {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.input-group input[readonly]:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.input-group input[readonly]:focus ~ .input-icon {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s ease;
}

.toggle-password:hover {
    color: white;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    padding-left: 25px;
    user-select: none;
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: 0.3s;
}

.remember-me:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.2);
}

.remember-me input:checked ~ .checkmark {
    background-color: var(--violet-light);
    border-color: var(--violet-light);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--royal-violet), var(--violet-light));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(83, 28, 179, 0.4);
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover::after {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(126, 69, 232, 0.6);
}

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

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    display: flex;
    align-items: center;
    background: rgba(255, 51, 102, 0.1);
    border-left: 3px solid var(--error);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: var(--error);
    font-size: 13px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    transform: translateY(-10px);
}

.error-message.show {
    opacity: 1;
    height: auto;
    padding: 10px 15px;
    transform: translateY(0);
    animation: shake 0.5s;
}

.error-message i {
    margin-right: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 260px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--royal-violet), var(--violet-light));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(126, 69, 232, 0.4);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a i {
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(126, 69, 232, 0.15);
    color: white;
}

.sidebar-nav a.active {
    border-left: 3px solid var(--violet-light);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 51, 102, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: var(--error);
    color: white;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.top-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-profile .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--violet-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
}

.card {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.card-icon.blue { background: rgba(0, 240, 255, 0.1); color: var(--neon-blue); }
.card-icon.violet { background: rgba(126, 69, 232, 0.1); color: var(--violet-light); }
.card-icon.pink { background: rgba(255, 51, 102, 0.1); color: #FF3366; }

.card-info h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 24px;
    font-weight: 700;
}

.recent-activity h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.activity-item:hover {
    background: rgba(255,255,255,0.03);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--violet-light);
}

.activity-details h4 {
    font-size: 14px;
    font-weight: 500;
}

.activity-details p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 15px;
    }
    .sidebar-header {
        padding-bottom: 15px;
    }
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }
    .sidebar-nav a {
        white-space: nowrap;
    }
    .main-content {
        padding: 20px;
    }
}
