.voluntarios-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    background: var(--nav-gradient);
    color: white;
    padding: 40px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s infinite linear;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-section {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px var(--container-shadow);
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: end;
}

.search-input {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-teal) 10%, transparent);
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1em;
    background: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand-teal);
}

.voluntarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.voluntario-card {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--container-shadow);
    position: relative;
}

.voluntario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-coral));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voluntario-card:hover::before {
    opacity: 1;
}

.voluntario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--container-shadow);
}

.card-header-modern {
    background: linear-gradient(135deg, var(--nav-bg), var(--nav-bg));
    color: var(--nav-text);
    padding: 20px;
    position: relative;
}

.voluntario-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-coral));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.voluntario-nome {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    color: white;
}

.voluntario-localidade {
    font-size: 0.95em;
    opacity: 0.9;
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-body-modern {
    padding: 25px 20px;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--alternate-bg);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.info-item:hover {
    background: var(--hover-bg);
}

.info-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1em;
    flex-shrink: 0;
}

.icon-phone { background: linear-gradient(135deg, #667eea, #764ba2); }
.icon-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.icon-availability { background: linear-gradient(135deg, #f093fb, #f5576c); }
.icon-skills { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.icon-message { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    word-break: break-word;
}

.card-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--alternate-bg);
    border-top: 1px solid var(--border-color);
}

.btn-action {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9em;
}

.btn-edit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, var(--brand-coral), var(--danger));
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--danger) 30%, transparent);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin: 40px 0;
}

.empty-icon {
    font-size: 4em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-coral), var(--brand-coral-2));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--brand-coral) 40%, transparent);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.floating-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 35px color-mix(in srgb, var(--brand-coral) 50%, transparent);
}

@media (max-width: 768px) {
    .voluntarios-grid {
        grid-template-columns: 1fr;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.high-contrast .voluntario-card::before {
    background: linear-gradient(90deg, var(--hc-link-color), var(--hc-heading-color));
}

body.high-contrast .card-header-modern {
    background: var(--hc-nav-bg);
}

body.high-contrast .voluntario-avatar {
    background: linear-gradient(135deg, var(--hc-button-bg), var(--hc-button-hover-bg));
}

body.high-contrast .search-input:focus {
    border-color: var(--hc-link-color);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}

body.high-contrast .filter-select:focus {
    border-color: var(--hc-link-color);
}

body.high-contrast .btn-edit {
    background: linear-gradient(135deg, var(--hc-button-bg), var(--hc-button-hover-bg));
}

body.high-contrast .btn-edit:hover {
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

body.high-contrast .floating-button {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

body.high-contrast .floating-button:hover {
    box-shadow: 0 12px 35px rgba(13, 148, 136, 0.5);
}
