/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography - Improved Contrast */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: #0d1b2a;
}

h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

h4 {
    font-size: 1.25rem;
    color: #2c3e50;
}

h5 {
    font-size: 1.1rem;
    color: #2c3e50;
}

p {
    color: #2c3e50;
    margin-bottom: 1rem;
}

strong, b {
    font-weight: 700;
    color: #1a1a1a;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation */
nav {
    flex-grow: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.8;
}

/* Main Content */
main {
    min-height: calc(100vh - 240px);
    padding: 2rem 0;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: #4a5fd9;
    font-weight: 700;
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #5a6c7d;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn-primary {
    background: #28a745 !important;
    color: white !important;
    font-weight: 700;
}

.btn-primary:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background: #28a745 !important;
    color: white !important;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #218838 !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.btn-success {
    background: #28a745;
    color: white;
    font-weight: 700;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-info {
    background: #17a2b8;
    color: white;
    font-weight: 600;
}

.btn-info:hover {
    background: #138496;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    font-weight: 600;
}

.btn-warning:hover {
    background: #e0a800;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    color: #2c3e50;
}

th {
    background: #f8f9fa;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid #dee2e6;
}

tr:hover {
    background: #f8f9fa;
}

/* Editor Container (Quill) */
#editor-container {
    min-height: 300px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ql-toolbar {
    border-radius: 4px 4px 0 0;
}

.ql-container {
    border-radius: 0 0 4px 4px;
}

/* Improvement Checklist */
.improvement-checklist {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.improvement-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.improvement-item input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
}

/* Evaluation Display */
.criteria-scores {
    margin-top: 1.5rem;
}

.criterion {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 4px solid #667eea;
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.criterion-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
}

.criterion-score-badge {
    font-weight: 600;
    color: #667eea;
    font-size: 1.3rem;
    font-weight: 800;
}

.criterion-description {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.total-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    margin: 2rem 0;
}

.total-score h3 {
    margin-bottom: 0.5rem;
}

.total-score .score {
    font-size: 3rem;
    font-weight: bold;
}

/* Errors List */
.errors-section {
    margin-top: 2rem;
}

.error-category {
    margin-bottom: 1.5rem;
}

.error-category h4 {
    color: #c82333;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.error-item {
    background: #fff3cd;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    color: #1a1a1a;
    border-left: 3px solid #ffc107;
}

/* Comments */
.comments-section {
    margin-top: 2rem;
}

.comment {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
}

.comment-date {
    color: #5a6c7d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Wall/Feed */
.feed-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.feed-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.action-btn {
    background: none;
    border: none;
    color: #4a5fd9;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.action-btn:hover {
    color: #2c3e50;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: flex-start;
    }
    
    .logo-text {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        min-height: calc(100vh - 300px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}
/* ==================== LOGIN PAGE STYLES ==================== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.back-to-home:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    padding-left: 0.25rem;
}

.back-to-home span {
    white-space: nowrap;
}

.login-container .card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

.login-container h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.login-container .form-group {
    margin-bottom: 1.5rem;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-container .btn {
    width: 100%;
    padding: 0.95rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-container .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-container .form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.login-container .form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-container .form-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ==================== RESPONSIVE LOGIN ==================== */

@media (max-width: 768px) {
    .login-wrapper {
        padding: 1rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .login-container h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .back-to-home {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 1rem;
        min-height: auto;
    }

    .login-container {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .login-container h1 {
        font-size: 1.5rem;
    }

    .login-container input[type="email"],
    .login-container input[type="password"] {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .back-to-home {
        font-size: 0.85rem;
    }
}