/* Continue from previous CSS... */
body {
    font-family: Arial, sans-serif;
    background-color: #004f61; /* Maroon */
    color: #FFD700; /* Gold */
    margin: 0;
    padding: 0;
    background-image: url("background.jpg");
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover;
}
.signup-container  {
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #000000e1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #800000;
}

.edit-container{
    text-align: left;
    max-width: 1000px;
    margin: 100px auto;
    margin-top:-10px;
    padding: 50px;
    background: #000000e1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #800000;
}

.form-bg {
    text-align: left;
    max-width: 70%;
    margin: 0px auto;
    padding: 30px;
    background: #000000e1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #800000;
}





input[type="text"], 
input[type="password"], 
input[type="date"], 
input[type="number"], 
select {
    width: 50%;
    padding: 12px;
    border: 2px solid #800000;
    border-radius: 5px;
    transition: border-color 0.3s;
    font-size: 20px;
}

input:focus, 
select:focus {
    border-color: #800000;
    outline: none;
}

/* Table Styling */
table {
    width: 90%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgb(0, 0, 0);
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

th, td {
    padding: 5px;
    text-align: center;
    border:2px solid #f3f3f3;
    color: white;
}

th {
    background-color: #800000;
    color: #FFD700;
    font-weight: 600;
}

tr:hover {
    background-color: #800000;
        color:white;
}

.total-row {
    background-color: #FFD700;
    font-weight: bold;
}

.total-row td {
    color: #800000;
    font-size: 30px;
}

.total-row td:hover {
    background-color: #000000;
    color:white;
}

/* Button Styling */
button {
    background-color: #800000;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-top: 15px;
}

button:hover {
    background-color: #FFD700;
    color: #800000;
    transform: translateY(-2px);
}

/* Featured Image Styling */
.featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    border: 3px solid #800000;
}

/* Error/Success Messages */
.error {
    background-color: #ffebee;
    color: #cc0000;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c8e6c9;
}

/* Search Form Styling */
.search-form {
    width: 30%;
    margin: 20px;
    display: block;
    gap: 0px;
}

.search-form input {
  
    padding: 12px;
    border: 2px solid #3f0000;
    border-radius: 5px;
    margin-right: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .login-container, 
    .signup-container, 
    .edit-container {
        margin: 10px;
        padding: 20px;
        background-color: #000000c6;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .featured-image {
        height: 180px;
    }

    button {
        width: 100%;
    }
}

/* Action Links Styling */
a {
    color: #800000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #FFD700;
}

.action-links a {
    margin: 0 8px;
    padding: 5px 10px;
    border-radius: 3px;
}

.action-links a:hover {
    background-color: #f8f9fa;
}
/* Updated Login Form Styling */
.login-container {
    max-width: 300px;
    margin: 5% auto;
    padding: 20px;
    background: #000000c3;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #800000;
    text-align: center;
}

.login-container h1 {
    color: #800000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* Form styling */
#resourceForm {
    margin-bottom: 10px;
    margin-left: 20px;
    margin-top: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Three columns */
    gap: 0px; /* Space between columns */
    margin-left:0%;
}

.form-column {
    display: flex;
    flex-direction: column;
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input{
    width: 50%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 2px solid maroon;
    border-radius: 4px;
    font-size: 20px;
}



.button-row {
    grid-column: span 3; /* Button spans all three columns */
    display: flex;
    justify-content: left; /* Center the button */
    margin-top: 10px;
    
}

form button {
    padding: 10px 20px;
    background-color: gold; /* Maroon */
    color: Maroon; /* Gold */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #600000; /* Darker Maroon */
    color:gold;
}

/* Image Column styling */
.image-column {
    display: flex;
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
}

.image-column img {
    width: 80%;
    height: auto;
    border-radius: 10px;
    margin-right: ;
    margin-left: -10%;
    margin-top: 10%;
    margin-bottom: -10%;
    border: 0px solid #800000; /* Maroon border for the image */
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #800000;
    font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #800000;
    box-shadow: 0 0 8px rgba(128, 0, 0, 0.2);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: #800000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #600000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #FFD700;
    color: #800000;
    border: 2px solid #ffffff;
    border-radius: 10px;
   
}

.btn-secondary:hover {
    background-color: black;
    transform: translateY(-2px);
    color: #800000;
}

/* Error Message Styling */
.error-message {
    background-color: gold;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 0px solid #ff9999;
    text-align: center;
}