/* Internship Management System - Pink and White Theme */

:root {
    --primary-pink: #0B1220;
    --primary-rgb: 11, 18, 32;
    --light-pink: #F4EEDB;
    --dark-pink: #050A12;
    --brand-logo-url: url('../img/codex-logo.svg');
    --white: #FFFFFF;
    --light-gray: #F4EEDB;
    --dark-gray: #1B2230;
    --text-color: #0B1220;
    --border-color: #DDD6C5;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #2196F3;
}

[data-theme="dark"] {
    --primary-pink: #F4EEDB;
    --primary-rgb: 244, 238, 219;
    --light-pink: #121826;
    --dark-pink: #E6DDBF;
    --white: #0B1220;
    --light-gray: #121826;
    --dark-gray: #D6D1C2;
    --text-color: #F4EEDB;
    --border-color: #2A3142;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

/* Brand Logo */
.login-logo h1,
.sidebar-header h2 {
    display: flex;
    align-items: center;
    
    gap: 10px;
}

.login-logo h1 i,
.sidebar-header h2 i {
    display: none;
}

.login-logo h1::before {
    content: '';
    width: 44px;
    height: 44px;
    background: var(--brand-logo-url) center / contain no-repeat;
}

.sidebar-header h2::before {
    content: '';
    width: 26px;
    height: 26px;
    background: var(--brand-logo-url) center / contain no-repeat;
    filter: invert(1);
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

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

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

.login-logo h1 {
    color: var(--primary-pink);
    font-size: 28px;
    font-weight: 700;
    justify-content: center;
}

.login-logo p {
    color: var(--dark-gray);
    font-size: 14px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    color: var(--white);
}

.sidebar-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--light-pink);
    border-left-color: var(--primary-pink);
    color: var(--primary-pink);
}

.sidebar-nav a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar h1 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-pink);
}

.card-header h3 {
    color: var(--primary-pink);
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    color: var(--text-color);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.stat-icon.pink {
    background: var(--light-pink);
    color: var(--primary-pink);
}

.stat-icon.green {
    background: #E8F5E9;
    color: var(--success);
}

.stat-icon.blue {
    background: #E3F2FD;
    color: var(--info);
}

.stat-icon.orange {
    background: #FFF3E0;
    color: var(--warning);
}

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

.stat-info .stat-value {
    color: var(--primary-pink);
    font-size: 28px;
    font-weight: 700;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-pink);
    color: var(--primary-pink);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.table tr:hover {
    background: var(--light-pink);
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #E8F5E9;
    color: var(--success);
}

.badge-warning {
    background: #FFF3E0;
    color: var(--warning);
}

.badge-danger {
    background: #FFEBEE;
    color: var(--danger);
}

.badge-info {
    background: #E3F2FD;
    color: var(--info);
}

.badge-pink {
    background: var(--light-pink);
    color: var(--primary-pink);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #E8F5E9;
    border-color: var(--success);
    color: #2E7D32;
}

.alert-danger {
    background: #FFEBEE;
    border-color: var(--danger);
    color: #C62828;
}

.alert-warning {
    background: #FFF3E0;
    border-color: var(--warning);
    color: #EF6C00;
}

.alert-info {
    background: #E3F2FD;
    border-color: var(--info);
    color: #1565C0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    animation: slideDown 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-pink);
}

.modal-header h3 {
    color: var(--primary-pink);
    font-size: 20px;
    font-weight: 600;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-pink);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--light-pink);
    border-color: var(--primary-pink);
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
}

.notification-btn {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: var(--light-pink);
    border-color: var(--primary-pink);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.notification-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 10px;
}

.notification-menu.show {
    display: block;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: var(--light-pink);
}

.notification-item.unread {
    background: var(--light-pink);
}

.notification-item h5 {
    color: var(--primary-pink);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-item p {
    color: var(--text-color);
    font-size: 12px;
    margin-bottom: 5px;
}

.notification-item small {
    color: var(--dark-gray);
    font-size: 11px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .top-bar-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .login-card {
        padding: 30px 20px;
    }
}

/* Progress Bar */
.progress {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink) 0%, var(--dark-pink) 100%);
    transition: width 0.3s ease;
}

/* Calendar */
.calendar {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: var(--light-pink);
}

.calendar-day.today {
    background: var(--primary-pink);
    color: var(--white);
}

.calendar-day.has-event {
    border: 2px solid var(--primary-pink);
}

/* Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--light-gray);
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.chat-message .message-content {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 60%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-message.sent .message-content {
    background: var(--primary-pink);
    color: var(--white);
}

.chat-message .message-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.chat-message .message-content p {
    font-size: 14px;
    word-break: break-word;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

.chat-input form {
    display: flex;
    gap: 10px;
}

.chat-input .form-control {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
}

.chat-input .btn {
    padding: 10px 20px;
}
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-message .message-content {
    background: var(--light-pink);
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 70%;
}

.chat-message.sent .message-content {
    background: var(--primary-pink);
    color: var(--white);
}

.chat-input {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.leaderboard-item:hover {
    background: var(--light-pink);
}

.leaderboard-rank {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.leaderboard-rank.gold {
    background: #FFD700;
}

.leaderboard-rank.silver {
    background: #C0C0C0;
}

.leaderboard-rank.bronze {
    background: #CD7F32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-info h5 {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.leaderboard-info p {
    color: var(--dark-gray);
    font-size: 12px;
}

.leaderboard-score {
    color: var(--primary-pink);
    font-size: 18px;
    font-weight: 700;
}
