/* student-portal-styles.css - Updated with enhanced header styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Updated Header Styles === */
header {
    background: linear-gradient(135deg, #003366, #004080);
    color: white;
    padding: 15px 25px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    min-height: 80px;
}

header::before,
header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

header::before {
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
}

header::after {
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.logo-container img {
    height: 80px;
    width: auto;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    color: #ffcc00;
}

.logo-container h2 {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* User Display */
.user-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    color: white;
    font-weight: 500;
}

.logout-btn {
    background-color: #cc0000;
    padding: 2px 6px; /* Extremely small padding */
    font-size: 10px; /* Tiny font size */
    margin-left: 5px;
    border-radius: 3px;
    transition: all 0.2s;
    line-height: 1;
    min-width: 0; /* Allow button to shrink beyond default minimums */
}

.logout-btn:hover {
    background-color: #b00000;
    transform: none; /* Remove hover movement for tiny button */
    opacity: 0.9;
}

/* Navigation Styles */
nav {
    background-color: #002244;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

/* Main Content Area */
main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 30px auto;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 5px rgba(0, 64, 128, 0.3);
}

/* Button Styles */
button, .btn {
    padding: 12px 24px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

button:hover, .btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #004080;
}

.btn-secondary:hover {
    background-color: #00305f;
}

.btn-danger {
    background-color: #cc0000;
}

.btn-danger:hover {
    background-color: #b00000;
}

/* Login and Registration Styles */
.login-container, .registration-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
}

.login-container h2, .registration-container h2 {
    color: #003366;
    margin-bottom: 15px;
}

.login-container p, .registration-container p {
    color: #666;
    margin-bottom: 25px;
}

.signup-link, .login-link {
    margin-top: 20px;
    font-size: 15px;
   text-align:center;
}

.signup-link a, .login-link a {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover, .login-link a:hover {
    text-decoration: underline;
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
    color: #003366;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #004080;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Footer Styles */
footer {
    background-color: #002244;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #27ae60);
}

footer p {
    margin-bottom: 10px;
}

.social-media {
    margin: 15px 0;
}

.social-media a {
    color: white;
    margin: 0 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-media a:hover {
    color: #ffcc00;
}

/* Portal Section Styles */
.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.candidate-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.candidate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.candidate-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.candidate-info {
    padding: 15px;
}

.candidate-info h3 {
    color: #003366;
    margin-bottom: 10px;
}

.candidate-info p {
    color: #666;
    margin-bottom: 15px;
}

.vote-button-container {
    text-align: center;
    margin-top: 15px;
}

/* Status and Notification Styles */
.success-message, .error-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* About Page Styles */
.info-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.info-section h3 {
    color: #003366;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 5px;
}

.contact-info {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

/* News Page Styles */
.news-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.news-item h3 {
    color: #003366;
    margin-bottom: 10px;
}

.news-link {
    display: inline-block;
    margin-top: 10px;
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* Other Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #003366;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    min-height: 60px;
}

.service-btn {
    width: 100%;
    padding: 10px;
}

/* Content Container for all pages */
.content-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-container h2 {
    color: #003366;
    margin-bottom: 25px;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 10px;
}

/* Dashboard Service Items */
.service-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: #003366;
    border-bottom: 1px solid #ff6600;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.service-item ul {
    padding-left: 20px;
}

.service-item li {
    margin-bottom: 5px;
    color: #444;
}

/* Candidates Resume Styles */
.candidate-resumes {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.candidate-resume {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: all 0.3s;
}

.candidate-resume:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resume-header {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.resume-header h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.branch, .urn {
    margin: 3px 0;
    color: #7f8c8d;
    font-style: italic;
}

.resume-section {
    margin-bottom: 20px;
}

.resume-section h4 {
    color: #3498db;
    margin: 0 0 8px 0;
    font-size: 18px;
    border-bottom: 1px dotted #bdc3c7;
    padding-bottom: 5px;
}

.resume-section ul {
    margin: 0;
    padding-left: 20px;
}

.resume-section ul li {
    margin-bottom: 5px;
}

.resume-section p {
    margin: 5px 0;
    line-height: 1.5;
}

.resume-section p i {
    color: #34495e;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 10px;
    }
    
    .logo-container h1 {
        font-size: 1.8rem;
    }
    
    .logo-container h2 {
        font-size: 1rem;
    }
    
    .user-display {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    nav a {
        width: 90%;
        text-align: center;
        margin: 5px 0;
    }
    
    .container {
        margin: 25px auto;
        padding: 0 15px;
    }
    
    .login-container, .registration-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    button, .btn {
        padding: 10px 20px;
    }
    
    th, td {
        padding: 10px;
    }
    
    .candidate-grid {
        grid-template-columns: 1fr;
    }
}
