/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-bg-color: #ffffff;
    --border-color: #ddd;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ffffff;
    --header-bg: #ffffff;
}

/* Dark Theme Variables */
.dark-theme {
    --primary-color: #3a506b;
    --secondary-color: #48b0f7;
    --background-color: #1a1d24;
    --text-color: #e0e0e0;
    --error-color: #ff5e57;
    --success-color: #5af78e;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --card-bg-color: #272b34;
    --border-color: #3a3f48;
    --sidebar-bg: #242832;
    --sidebar-text: #e0e0e0;
    --header-bg: #272b34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    padding: 20px;
}

/* Login Container Styles */
.login-container {
    background: white;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 16px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Remember Me and Forgot Password */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #2980b9;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .input-group input {
        font-size: 14px;
    }
}

/* Theme transition */
body, .sidebar, .main-content, .dashboard-card, .stat-card, .top-nav,
.case-item, .activity-item, input, select, textarea, button {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Role-based Highlighting */
.sidebar-menu li.highlight a {
    background-color: #2a4059;
    border-left: 4px solid var(--secondary-color);
    font-weight: bold;
}

.login-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* Add styles for role-specific elements */
.admin-badge,
.user-badge,
.manager-badge,
.legal-badge,
.lawfirm-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 8px;
    color: white;
}

.admin-badge {
    background-color: #0066FF;
}

.user-badge {
    background-color: #6B7280;
}

.manager-badge {
    background-color: #0284C7;
}

.legal-badge {
    background-color: #8B5CF6;
}

.lawfirm-badge {
    background-color: #10B981;
}

/* Law firm specific styles */
.sidebar-menu li.lawfirm-access a {
    position: relative;
    font-weight: 500;
    color: #2ecc71;
}

.sidebar-menu li.lawfirm-access a::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
}

.user-firm-name {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 0;
} 