/* ========================================
   Responsive Table Styles for Mobile
   ======================================== */

/* Desktop - Normal table display */
@media (min-width: 769px) {
    .volunteer-table-wrapper {
        overflow-x: auto;
    }

    .volunteer-table {
        width: 100%;
    }

    .mobile-card-view {
        display: none;
    }
}

/* Mobile - Card-based display */
@media (max-width: 768px) {

    /* Hide table on mobile */
    .volunteer-table {
        display: none;
    }

    /* Show card view on mobile */
    .mobile-card-view {
        display: block;
    }

    .volunteer-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .volunteer-card-header {
        border-bottom: 2px solid #007bff;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .volunteer-card-title {
        font-size: 16px;
        font-weight: bold;
        color: #333;
        margin: 0 0 5px 0;
    }

    .volunteer-card-subtitle {
        font-size: 14px;
        color: #666;
        margin: 0;
    }

    .volunteer-card-body {
        margin-bottom: 15px;
    }

    .volunteer-card-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .volunteer-card-row:last-child {
        border-bottom: none;
    }

    .volunteer-card-label {
        font-weight: 600;
        color: #555;
        font-size: 13px;
    }

    .volunteer-card-value {
        color: #333;
        font-size: 13px;
        text-align: right;
    }

    .volunteer-card-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .volunteer-card-actions .btn {
        width: 100%;
        margin: 0 !important;
    }

    .volunteer-status-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
    }

    .status-confirmed {
        background-color: #d4edda;
        color: #155724;
    }

    .status-pending {
        background-color: #fff3cd;
        color: #856404;
    }

    .status-rejected {
        background-color: #f8d7da;
        color: #721c24;
    }

    /* Summary card */
    .volunteer-summary-card {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .volunteer-summary-card h4 {
        margin: 0 0 10px 0;
        font-size: 16px;
    }

    .volunteer-summary-card .hours {
        font-size: 32px;
        font-weight: bold;
        margin: 10px 0;
    }

    .volunteer-summary-card .target {
        font-size: 14px;
        opacity: 0.9;
    }

    /* Button improvements for mobile */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .btn-group-mobile .btn {
        width: 100%;
        text-align: left;
    }

    .btn-group-mobile .btn i {
        margin-right: 8px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .volunteer-table {
        font-size: 13px;
    }

    .volunteer-table th,
    .volunteer-table td {
        padding: 8px 4px;
    }

    .volunteer-table .btn {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Print styles */
@media print {

    .volunteer-card-actions,
    .btn,
    button {
        display: none !important;
    }

    .volunteer-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}