/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
}

/* LINKS */
a {
    color: #2563EB;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* HEADER / NAV */
header {
    background: linear-gradient(90deg, #acc5d1, #acc5d1);
    color: #fff;
    padding: 16px 0;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links a {
    margin-left: 20px;
    color: #0c1728;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 32px 24px;
}

/* PAGE TITLES */
.page-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 12px;
    color: #1E40AF;
}

/* BUTTONS */
.button {
    display: inline-block;
    padding: 10px 18px;
    background: #acc5d1;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.button.secondary {
    background: #acc5d1;
}

.button.danger {
    background: #DC2626;
}

.button.small {
    padding: 6px 12px;
    font-size: 14px;
}

.button:hover {
    opacity: 0.9;
}

/* FORMS */
form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 15px;
}

form textarea {
    min-height: 100px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #2563EB;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

table th,
table td {
    padding: 14px;
    border-bottom: 1px solid #E5E7EB;
}

table th {
    background: #F1F5F9;
    text-align: left;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge.open { background: #DBEAFE; color: #1D4ED8; }
.badge.pending { background: #FEF3C7; color: #92400E; }
.badge.accepted { background: #DCFCE7; color: #166534; }
.badge.denied { background: #FEE2E2; color: #991B1B; }

/* CHAT */
#chat-box {
    border: 1px solid #ddd;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
}

#chatForm input[type="text"] {
    box-sizing: border-box;
}

#chatForm button {
    cursor: pointer;
}


.chat-row { display:flex; margin-bottom:12px; }
.chat-me { justify-content:flex-end; text-align:right; }
.chat-other { justify-content:flex-start; text-align:left; }
.chat-text { max-width:70%; font-size:14px; line-height:1.5; }
.chat-text strong { font-size:13px; font-weight:600; }

.badge {
    background:red; color:white; padding:2px 6px; font-size:12px; border-radius:50%;
    vertical-align:top; margin-left:4px;
}



/* FOOTER */
footer {
    margin-top: 60px;
    padding: 24px;
    text-align: center;
    color: #64748B;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}


/* Container styling */
.post-request-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Form headings */
.post-request-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Form fields */
.post-request-container input,
.post-request-container select,
.post-request-container textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.post-request-container input:focus,
.post-request-container select:focus,
.post-request-container textarea:focus {
    border-color: #326c88;
    outline: none;
}

/* Textarea adjustments */
.post-request-container textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit button */
.post-request-btn {
    background-color: #326c88;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 15px;
    display: block;
    width: 100%;
}

.post-request-btn:hover {
    background-color: #117a8b;
    transform: translateY(-2px);
}

/* Labels */
.post-request-container label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #555;
}

/* Optional small description text */
.post-request-container small {
    color: #777;
    font-size: 12px;
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .post-request-container {
        padding: 20px;
        margin: 20px;
    }
}

.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #17a2b8;
}

.dashboard-card p {
    font-size: 14px;
    color: #555;
}

