/*
 * Modern styling for the sponsor system.
 *
 * This stylesheet provides a clean, professional appearance inspired by
 * modern web design. It avoids dependence on external CSS frameworks
 * and instead defines reusable classes for layout, typography and
 * component styling. A dark gradient header contrasts with a light
 * background, and cards with subtle shadows focus the user's attention
 * on key content. Tables and navigation are customised for the admin
 * section.
 */

/* Import the Poppins font for a contemporary look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Box sizing reset */
* {
    box-sizing: border-box;
}

/* Global styles */
body {
    background: #f5f7fa;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
}

/* Header with gradient and logos */
.header {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    padding: 20px 0;
    text-align: center;
}
.header .logos {
    display: flex;
    justify-content: center;
    align-items: center;
}
.header .logos img {
    max-height: 150px;
    margin: 0 15px;
}

/* Container for centring content */
.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Card for forms and sections */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    color: #203a43;
}

/* Form groups */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #203a43;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd0d5;
    border-radius: 5px;
    font-size: 16px;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Phone input group */
.phone-group {
    display: flex;
    width: 100%;
}
.phone-group .prefix {
    padding: 12px 16px;
    border: 1px solid #ccd0d5;
    border-right: none;
    border-radius: 5px 0 0 5px;
    background: #f0f2f5;
    font-size: 16px;
    color: #333;
}
.phone-group input {
    flex: 1;
    border: 1px solid #ccd0d5;
    border-left: none;
    border-radius: 0 5px 5px 0;
    padding: 12px;
    font-size: 16px;
}

/* Buttons */
.button {
    background: #205072;
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
}
.button:hover {
    background: #3293d3;
}

/* Messages */
.error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 20px;
}
.intro {
    background: #e7f1f7;
    border: 1px solid #d0e3eb;
    color: #26435f;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 20px;
}

/* Success message style */
.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 20px;
}

/* Admin navigation bar */
.navbar {
    background: #203a43;
    padding: 10px 0;
}
.navbar .nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .nav-brand {
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
}
.navbar .nav-links a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar .nav-links a:hover {
    color: #aad4f5;
}

/* Table styling */
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table th, table td {
    padding: 10px;
    text-align: left;
}
table thead {
    background: #205072;
    color: #fff;
}
table tbody tr:nth-child(odd) {
    background: #f5f7fa;
}
table tbody tr:nth-child(even) {
    background: #fff;
}
table td.status-approved {
    color: #23a559;
    font-weight: 600;
}
table td.status-rejected {
    color: #c0392b;
    font-weight: 600;
}
table td.status-pending {
    color: #6c757d;
    font-weight: 600;
}

/* Table action buttons */
.table-actions form {
    display: inline-block;
    margin-right: 5px;
}
.table-actions .button {
    padding: 6px 12px;
    font-size: 14px;
}