/**
 * Public styles for Volunteer Hours Tracker
 *
 * @package    Volunteer_Hours_Tracker
 * @subpackage Public/CSS
 */

/* Container Styles */
.vht-log-hours,
.vht-my-hours,
.vht-directory {
    margin: 20px 0;
    max-width: 1200px;
}

.vht-log-hours h2,
.vht-my-hours h2,
.vht-directory h2 {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Messages */
.vht-message {
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 4px solid #0073aa;
    background: #f0f6fc;
}

.vht-message-success {
    border-left-color: #46b450;
    background: #ecf7ed;
}

.vht-message-error {
    border-left-color: #dc3232;
    background: #f9e9e9;
}

.vht-error {
    padding: 15px;
    background: #f9e9e9;
    border-left: 4px solid #dc3232;
    margin: 15px 0;
}

/* Form Styles */
.vht-hours-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 30px;
}

.vht-form-row {
    margin-bottom: 20px;
}

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

.vht-form-row input[type="text"],
.vht-form-row input[type="number"],
.vht-form-row select,
.vht-form-row textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vht-form-row textarea {
    max-width: 100%;
    resize: vertical;
}

.vht-form-row input[type="number"] {
    max-width: 150px;
}

.vht-help-text {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.required {
    color: #dc3232;
}

/* Buttons */
.vht-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.vht-button:hover {
    background: #005a87;
    color: #fff;
}

.vht-button-primary {
    background: #0073aa;
}

.vht-button-primary:hover {
    background: #005a87;
}

/* Tables */
.vht-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
}

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

.vht-hours-table th {
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.vht-hours-table tr:hover {
    background: #f9f9f9;
}

.vht-hours-table td {
    vertical-align: top;
}

.vht-delete-link {
    color: #dc3232;
    text-decoration: none;
}

.vht-delete-link:hover {
    color: #a00;
    text-decoration: underline;
}

.vht-text-muted {
    color: #999;
}

/* Dashboard Sections */
.vht-dashboard-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vht-dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}

/* Info Blocks */
.vht-info-block {
    margin-bottom: 15px;
}

.vht-students-list,
.vht-members-list {
    margin: 8px 0 0 20px;
    list-style: disc;
}

.vht-students-list li,
.vht-members-list li {
    margin-bottom: 4px;
}

/* Progress Stats */
.vht-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.vht-stat-box {
    background: #f7f7f7;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    border: 2px solid #e5e5e5;
}

.vht-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 8px;
}

.vht-stat-value.vht-complete {
    color: #46b450;
}

.vht-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.vht-progress-bar-container {
    width: 100%;
    height: 40px;
    background: #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.vht-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.vht-progress-text {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vht-log-hours,
    .vht-my-hours,
    .vht-directory {
        padding: 15px;
    }

    .vht-hours-form {
        padding: 15px;
    }

    .vht-form-row input[type="text"],
    .vht-form-row input[type="number"],
    .vht-form-row select,
    .vht-form-row textarea {
        max-width: 100%;
    }

    .vht-progress-stats {
        grid-template-columns: 1fr;
    }

    .vht-stat-value {
        font-size: 28px;
    }

    .vht-hours-table {
        font-size: 13px;
    }

    .vht-hours-table th,
    .vht-hours-table td {
        padding: 8px 6px;
    }

    /* Stack table on very small screens */
    @media (max-width: 480px) {
        .vht-hours-table,
        .vht-hours-table thead,
        .vht-hours-table tbody,
        .vht-hours-table th,
        .vht-hours-table td,
        .vht-hours-table tr {
            display: block;
        }

        .vht-hours-table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

        .vht-hours-table tr {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .vht-hours-table td {
            border: none;
            position: relative;
            padding-left: 50%;
        }

        .vht-hours-table td:before {
            content: attr(data-label);
            position: absolute;
            left: 12px;
            font-weight: 600;
        }
    }
}

/* Recent Hours Section */
.vht-recent-hours {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.vht-recent-hours h3 {
    margin-top: 0;
    color: #333;
}
