/* RYKMDC Research Repository - Unified CSS */
/* Brand Colors & Variables */
:root {
    --primary: #005baa;
    --secondary: #4CAF50;
    --danger: #e53935;
    --warning: #ffb300;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0, 91, 170, 0.1);
    --text-dark: #0d141a;
    --text-light: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header & Navigation */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #e0e7ff;
}

/* Page Header (Hero Section) */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Cards & Forms */
.form-container, .project-view, .profile-card, .projects-list {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: var(--card-shadow);
    max-width: 900px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="date"], 
textarea, 
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Buttons */
.btn, .actions a, .btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary, .btn {
    background: var(--primary);
    color: white;
}

.btn-primary:hover, .btn:hover {
    background: #004a8f;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: #f0f7ff;
}

/* Status Badges */
.project-status, .status-pending, .status-approved, .status-in_progress, .status-completed, .status-rejected {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending { background: #e3f2fd; color: #1976d2; }
.status-approved { background: #e8f5e9; color: #2e7d32; }
.status-in_progress { background: #fff8e1; color: #ed6c02; }
.status-completed { background: #f5f5f5; color: #616161; }
.status-rejected { background: #ffebee; color: #c62828; }

/* Project & Profile Views */
.project-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

.project-meta i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Tables */
.data-table, table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table th, .data-table td, table th, table td {
    padding: 1rem;
    text-align: left;
}

.data-table th, table th {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.data-table tr:hover, table tr:hover {
    background: #f8f9fa;
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.actions a {
    color: var(--primary);
    text-decoration: none;
}

.actions a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-size: 0.9rem;
    background: white;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .form-container, .project-view {
        padding: 1.5rem;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}