/* Teacher Swaps Plugin Styles */
.teacher-swap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.teacher-swap-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.teacher-swap-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.teacher-swap-form input,
.teacher-swap-form select,
.teacher-swap-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.teacher-swap-form button {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.teacher-swap-form button:hover {
    background: #218838;
}

.swap-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.swap-success a {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
}

.swap-success .btn-green {
    background: #28a745;
    color: white;
}

.swap-success .btn-blue {
    background: #007bff;
    color: white;
}

/* Table for desktop */
.swap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.swap-table th,
.swap-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.swap-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Cards for mobile */
.swap-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.swap-card h3 {
    margin-top: 0;
}

/* Single Post Styles for Swap Details */
.swap-single-details {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.swap-single-details table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.swap-single-details th, 
.swap-single-details td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.swap-single-details th {
    width: 35%;
    font-weight: 600;
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .swap-table {
        display: none;
    }
    .swap-card {
        display: block;
    }
}

@media (min-width: 769px) {
    .swap-card {
        display: none;
    }
}

/* ============================================ */
/* ADDITIONAL FORM STYLING - NEW FORM LAYOUT */
/* ============================================ */

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.teacher-swap-form input,
.teacher-swap-form textarea {
    box-sizing: border-box;
}

.teacher-swap-form textarea {
    min-height: 100px;
    resize: vertical;
}

.swap-submit-btn {
    background: #22b573;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s ease;
}

.swap-submit-btn:hover {
    background: #1a9a5e;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.teacher-swap-login-required{text-align:center;padding:30px;background:#f8f9fa;border:1px solid #ddd;border-radius:8px;margin:20px 0;}
.swap-login-actions{margin-top:15px;}
.swap-btn{display:inline-block;padding:12px 20px;margin:5px;text-decoration:none;border-radius:5px;color:#fff;font-weight:600;}
.swap-btn-login{background:#0073aa;}
.swap-btn-register{background:#28a745;}
