
/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Full-page background */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Form Title */
.login-form h2 {
    margin-bottom: 15px;
    color: #333;
}

/* Input Groups */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Submit Button */
button {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #218838;
}

/* Error Message */
.error-msg {
    background: rgba(255, 0, 0, 0.1);
    color: red;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}
    


/* Header Container */
		
	.header {
    width: 100%;
    height: auto; /* Let height adjust automatically */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Optional fallback */
}

.header-img {
    max-width: 100%; /* Ensures image never overflows */
    height: auto; /* Keeps aspect ratio */
    display: block; /* Removes unwanted space below image */
}


          /* Overlay for Text */
        .overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.5); /* Dark overlay for contrast */
            padding: 20px;
            border-radius: 8px;
            color: white;
            text-align: center;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header {
                height: 40vh; /* Reduce height for smaller screens */
            }
            .overlay {
                width: 90%;
            }
        }



/* Logo Container */
.logo-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* College Logo */
.college-logo {
    width: 100%; /* Full width */
    max-width: 500px; /* Ensures it doesn't become too large */
    height: auto;
    display: block;
}

/* College Name */


/* Header Styling */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Align logo center & button right */
    align-items: center;
    background-color: #000;
    padding: 15px;
    color: white;
}

/* Logo Container */
.logo-container {
    flex: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* College Logo */
.college-logo {
    width: 100%; /* Full width */
    max-width: 500px; /* Prevents over-expansion */
    height: auto;
    display: block;
}

/* College Name */
.college-name {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Logout Button */
.logout-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    text-align: right;
}

/* Logout Button Hover Effect */
.logout-btn:hover {
    background-color: darkred;
}


/* Main Container */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Form Styling */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-form input, .user-form select, .user-form button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Buttons */
.user-form button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.user-form button:hover {
    background-color: #218838;
}

/* Success & Error Messages */
.success-msg {
    color: green;
    font-weight: bold;
}

.error-msg {
    color: red;
    font-weight: bold;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #007bff;
    color: white;
}

/* Action Buttons */
.delete-btn {
    color: red;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.modify-btn {
    color: blue;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        width: 90%;
    }
    
    table, th, td {
        font-size: 14px;
    }
    
    .logout-btn {
        margin-top: 10px;
    }
}
