/* ==========================
   Global Styles (from Home Page)
   ========================== */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8; /* Page background */
}

.dashboard {
    display: flex; /* Sidebar + main content side by side */
    height: 100vh; /* Full height viewport */
}

/* ==========================
   Sidebar company logo & alignment
   ========================== */
.company-logo {
    width: 250px;       /* Bigger logo */
    height: auto;       /* Maintain aspect ratio */
    object-fit: contain;
    display: block;
    margin-top: -60px;
    margin-bottom: -75px;
    margin-left:-25px;
}

/* ==========================
   Sidebar Styles
   ========================== */
.sidebar {
    width: 200px; /* Sidebar width */
    background-color: #140222; /* Purple primary color */
    color: #fff;
    display: flex;
    flex-direction: column; /* Stack links vertically */
    padding: 20px;
}

.sidebar a {
    text-decoration: none; /* Remove underline */
    color: #fff; /* White text */
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px; /* Rounded edges */
    transition: all 0.3s; /* Smooth hover/active transitions */
    font-size: 0.9rem; /* Slightly smaller font size */
    display: flex;
    align-items: center;
}

.sidebar a i {
    margin-right: 10px; /* Space between icon and text */
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar a:hover {
    background-color: #291a29; /* Slightly darker purple */
}

.sidebar a.active {
    background: linear-gradient(to right, #50c878, #008080); /* Emerald to teal gradient */
    color: #fff;
}

.sidebar .divider {
    height: 1px;
    background-color: #f2f1f2; 
    margin: 15px 0; 
    border-radius: 2px;
}

.sidebar .logout-btn {
    margin-top: auto; 
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background-color: #300830;
    transition: background 0.3s, transform 0.2s;
}

.sidebar .logout-btn i {
    font-size: 1.1rem;
}

.sidebar .logout-btn:hover {
    background: rgb(13, 2, 25);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.main-header-left h1 { margin-bottom:5px; }
.main-header-left p { color:#555; font-size:0.95rem; }
.main-header-right p { color:#555; font-size:0.9rem; }

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.notif-count {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: #140222;
}

.notif-count i {
    margin-right: 8px;
    color: #50c878; /* Use your gradient color as solid here */
}

.mark-all-btn {
    background: linear-gradient(to right, #50c878, #008080);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.mark-all-btn:hover {
    opacity: 0.9;
}


/* Notifications */
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.notification-card:hover { transform: translateY(-2px); }

.notification-card.unread { border-left: 4px solid #50c878; }

.notif-icon {
    font-size: 2rem;
    margin-right: 15px;
    color: #008080;
}

.notif-content {
    flex: 1;
}

.notif-text { font-size: 0.95rem; color: #333; }
.notif-time { font-size: 0.8rem; color: #777; margin-top: 5px; display:block; }

.notif-actions button {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn.ghost { background:none; border:1px solid #008080; color:#008080; }
.btn.ghost:hover { background:#008080; color:#fff; }
.btn.ghost.danger { border:1px solid #e74c3c; color:#e74c3c; }
.btn.ghost.danger:hover { background:#e74c3c; color:#fff; }

/* Responsive */
@media (max-width: 900px){
    .main-header { flex-direction: column; align-items:flex-start; }
    .notif-actions button { margin-top:5px; }
}