/* TUTD Akreditasyon Sistemi - Ana CSS */

:root {
    --tutd-blue: #003366;
    --tutd-light-blue: #0066cc;
    --tutd-gold: #FFD700;
    --bg-gray: #f5f5f5;
    --border-color: #ddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-gray);
    color: #333;
}

/* Header */
.tutd-header {
    background: white;
    border-bottom: 3px solid var(--tutd-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tutd-logo {
    max-width: 250px;
    height: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tutd-blue);
    margin: 0;
    line-height: 1.3;
}

.user-info {
    color: var(--tutd-blue);
    font-weight: 500;
}

.user-info i {
    font-size: 1.5rem;
    margin-right: 5px;
}

/* Navigation */
.tutd-nav {
    background: var(--tutd-blue);
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: var(--tutd-light-blue);
    color: white;
}

.nav-menu a i {
    margin-right: 8px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
}

/* Footer */
.tutd-footer {
    background: var(--tutd-blue);
    color: white;
    padding: 20px 0;
    margin-top: 50px;
}

.tutd-footer p {
    margin: 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background: var(--tutd-blue) !important;
    color: white !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--tutd-blue);
    border-color: var(--tutd-blue);
}

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

/* Flash Messages */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .tutd-logo {
        max-width: 180px;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .user-info span {
        display: none;
    }
}

/* Timeline (Dashboard için) */
.timeline-marker {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.timeline-item.active .timeline-marker {
    background: var(--tutd-light-blue) !important;
}

.timeline-item.completed .timeline-marker {
    background: #28a745 !important;
}


/* =====================================
   NAVBAR - ROLE BASED
   ===================================== */

.tutd-nav {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-menu a i {
    margin-right: 0.5rem;
}

/* Aktif Menü Item */
.nav-menu li.active a {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid #ffd700;
}

/* =====================================
   USER INFO & ROLE BADGES
   ===================================== */

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info i.fa-user-circle {
    font-size: 1.5rem;
    color: #1e3c72;
}

.user-info span {
    font-weight: 600;
    color: #2c3e50;
}

/* Role Badges */
.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* =====================================
   RESPONSIVE
   ===================================== */

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
}

/* =====================================
   HEADER
   ===================================== */

.tutd-header {
    background: #fff;
    border-bottom: 3px solid #1e3c72;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tutd-logo {
    max-height: 80px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    color: #1e3c72;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* =====================================
   MAIN CONTENT
   ===================================== */

.main-content {
    min-height: calc(100vh - 250px);
    background: #f8f9fa;
}

/* =====================================
   FOOTER
   ===================================== */

.tutd-footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.tutd-footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* =====================================
   FLASH MESSAGES
   ===================================== */

.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.message.success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.message.error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.message.warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.message.info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}
