/* ===== General Styles ===== */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
/*    background-color: #FFE3B1;*/
    margin: 0;
    padding: 0;
}

.container {
    max-width: 450px;
    margin: 50px auto;
    padding: 20px 30px;
    background: #fff;
    background-color: #FFE3B1;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Inputs & Textareas ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

textarea { 
    resize: vertical;
    min-height: 80px;
}

/* ===== Buttons ===== */
input[type="submit"],
.btn {
/*    background-color: #4CAF50;*/
    background-color: #265F34;
    color: white;
    border: none;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    display: block;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.back-btn {
/*    background-color: #4CAF50;*/
    background-color: #265F34;
    color: white;
    border: none;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"]:hover,
.btn:hover,
.back-btn:hover {
/*    background-color: #45a049;*/
    background-color: #265F34;
}

/* Hover effect */
.btn:hover {
/*    background-color: #45a049;*/
    background-color: #265F34;
}

/* Delete button variation */
.delete-btn {
    background-color: #e74c3c;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* ===== Flash Messages ===== */
.flash {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
}

/* ===== Images ===== */
img {
    max-width: 100%;
    max-height: 250px;
    display: block;
    margin: 10px 0;
    border-radius: 8px;
}

/* ===== Headings ===== */
h1, h2 {
    text-align: center;
    color: #333;
}

/* ===== Links ===== */
a {
/*    color: #4CAF50;*/
    color: #265F34;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Back Button ===== */
.back-btn {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}
@media (max-width: 480px) {
    .container {
        margin: 20px auto;
        padding: 15px 20px;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    input[type="submit"],
    .btn,
    .back-btn {
        font-size: 1rem;
        padding: 10px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea,
    input[type="file"] {
        font-size: 1rem;
    }
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    font-size: 13px;
    color: #666;
/*    color: #265F34;*/
    margin-top: 40px;
    padding: 15px 0;
/*    border-top: 1px solid #ddd;*/
}


/* ===== Logo Styling ===== */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 120px;   /* Adjust logo size */
    height: auto;
    margin: 0 auto;
    display: block;
}


/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    table-layout: fixed; /* ensures consistent column widths */
}

table th, table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word; /* prevent long text from breaking layout */
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
    text-align: left;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Make action column narrower & right aligned */
table th:last-child,
table td:last-child {
    width: 80px;   /* adjust width as needed */
    text-align: center;
}

table td a {
    color: #4CAF50;
    font-weight: bold;
    text-decoration: none;
}

table td a:hover {
    text-decoration: underline;
}
