/* 
   Premium Styles & Glassmorphism for Public Pages 
   Extracted from Panel & Enhanced for Modern UI
*/

/* --- 1. Premium Sidebar Styles (Matches Panel) --- */
.main-sidebar {
    background: rgba(30, 30, 45, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

.brand-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.brand-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #fff, #aebafb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-sidebar .nav-item .nav-link {
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    padding: 10px 1rem;
}

.nav-sidebar .nav-item .nav-link p {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-sidebar .nav-icon {
    font-size: 1.1rem;
    margin-right: .5rem;
}

.nav-sidebar .nav-item .nav-link.active {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff) !important;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.4) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.nav-sidebar .nav-treeview>.nav-item>.nav-link {
    padding-left: 2.5rem;
    font-size: 0.75rem;
}

.nav-sidebar .nav-treeview>.nav-item>.nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

.nav-header {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.7rem;
    padding: 1.5rem 1rem 0.5rem !important;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* --- 2. Clean Corporate Auth Pages (Login, Register, Forgot Password) --- */

body.login-page,
body.register-page {
    background: #eef2f5;
    /* clean light gray background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-box,
.register-box {
    width: 400px;
    margin: 0;
}

@media (max-width: 450px) {

    .login-box,
    .register-box {
        width: 90%;
    }
}

/* Professional Card */
.card-outline.card-primary {
    background: #ffffff !important;
    border: none;
    border-top: 3px solid #007bff;
    /* Keep AdminLTE's signature top border but cleaner */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header Adjustments */
.card-header {
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 25px 20px;
}

.card-header a {
    color: #333 !important;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    text-shadow: none;
}

/* Body Text */
.card-body {
    padding: 30px;
    color: #666;
}

.login-box-msg,
.register-box-msg {
    padding: 0 0 20px 0;
    font-size: 0.95rem;
    color: #888;
}

/* Input Fields */
.input-group {
    margin-bottom: 20px !important;
}

.input-group .form-control {
    background: #fff;
    border: 1px solid #e1e4e8;
    color: #333;
    border-right: none;
    height: 45px;
    font-size: 15px;
    padding-left: 15px;
    transition: all 0.2s ease;
}

.input-group .form-control:focus {
    background: #fff;
    border-color: #007bff;
    box-shadow: none;
    color: #333;
}

/* Input Group Text (Icons) */
.input-group-text {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-left: none;
    color: #adb5bd;
    width: 45px;
    justify-content: center;
    transition: all 0.2s ease;
}

.input-group .form-control:focus+.input-group-append .input-group-text {
    border-color: #007bff;
    color: #007bff;
    background: #fff;
}

/* Buttons */
.btn-primary {
    background: #007bff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0069d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 123, 255, 0.25);
}

.btn-success {
    background: #28a745;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    font-weight: 600;
    padding: 10px;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(40, 167, 69, 0.25);
}

/* Links */
a {
    color: #007bff;
    font-weight: 500;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Checkbox */
.icheck-primary>label {
    color: #666;
    font-weight: normal;
}

/* Alerts */
.alert {
    border-radius: 5px;
    font-size: 0.9rem;
    border: none;
}

/* --- 3. Professional Dashboard (home.php) --- */

.content-wrapper {
    background: #f4f6f9;
    /* Matching professional light bg */
}

/* Welcome Hero Card */
.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #007bff;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #5f6c7b;
    line-height: 1.6;
}

/* Announcement Cards (Replacing Table) */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}

.announcement-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.announcement-meta {
    font-size: 0.85rem;
    color: #a0aec0;
    border-top: 1px solid #f7fafc;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-meta i {
    color: #cbd5e0;
}

.badge-soft-primary {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}