/* V2 Custom Styles - CCB Admin Mobile First */

:root {
    --ccb-primary: #043d60;
    --ccb-secondary: #385f8f;
    --ccb-accent: #1e5f8b;
    --ccb-light: #f8fafe;
    --ccb-dark: #1a1a1a;
    --ccb-gray: #6c757d;
    --ccb-success: #198754;
    --ccb-warning: #ffc107;
    --ccb-danger: #dc3545;
    --ccb-white: #ffffff;
    --ccb-text: #333333;
    --border-radius: 12px;
    --shadow: 0 2px 10px rgba(4, 61, 96, 0.1);
    --shadow-hover: 0 4px 20px rgba(4, 61, 96, 0.15);
}

/* Reset e Base */
* {
    box-sizing: border-box;
}

/* Classes de Cores Customizadas V2 */
.v2-text-primary {
    color: var(--ccb-primary) !important;
}

.v2-text-secondary {
    color: var(--ccb-secondary) !important;
}

.v2-text-muted {
    color: var(--ccb-gray) !important;
}

.v2-text-success {
    color: var(--ccb-success) !important;
}

.v2-text-warning {
    color: var(--ccb-warning) !important;
}

.v2-text-danger {
    color: var(--ccb-danger) !important;
}

.v2-text-white {
    color: var(--ccb-white) !important;
}

.v2-icon-primary {
    color: var(--ccb-primary);
}

.v2-icon-secondary {
    color: var(--ccb-secondary);
}

/* Sobrescrever cores Bootstrap para V2 */
.text-primary {
    color: var(--ccb-primary) !important;
}

.btn-primary {
    background-color: var(--ccb-primary) !important;
    border-color: var(--ccb-primary) !important;
}

.btn-primary:hover {
    background-color: var(--ccb-accent) !important;
    border-color: var(--ccb-accent) !important;
}

.v2-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--ccb-light) 0%, #e8f2ff 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header */
.v2-header {
    background: var(--ccb-primary);
    color: var(--ccb-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: var(--shadow);
}

.v2-menu-toggle {
    background: none;
    border: none;
    color: var(--ccb-white);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.v2-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.v2-logo {
    height: 24px;
    width: auto;
}

.v2-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 8px;
}

.v2-user-btn {
    background: none;
    border: none;
    color: var(--ccb-white);
    font-size: 1.5rem;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.v2-user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.v2-sidebar {
    background: var(--ccb-primary);
    color: var(--ccb-white);
    width: 300px !important;
}

.v2-sidebar .offcanvas-header {
    background: var(--ccb-accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-sidebar-logo {
    height: 32px;
    width: auto;
}

.v2-sidebar-menu {
    padding: 1rem 0;
}

.v2-menu-section {
    margin-bottom: 1rem;
}

.v2-menu-header {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v2-menu-header i {
    margin-right: 12px;
    width: 16px;
}

.v2-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--ccb-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.v2-menu-item.sub {
    padding-left: 48px;
}

.v2-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--ccb-white);
    color: var(--ccb-white);
}

.v2-menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--ccb-white);
}

.v2-menu-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.v2-main {
    margin-top: 80px;
    padding: 20px 16px;
    min-height: calc(100vh - 80px);
    margin-bottom: 70px; /* Space for bottom nav on mobile */
}

@media (min-width: 768px) {
    .v2-main {
        margin-bottom: 0; /* Remove bottom margin on desktop */
    }
}

/* Cards */
.v2-card {
    background: var(--ccb-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.v2-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.v2-card-header {
    background: var(--ccb-primary);
    color: var(--ccb-white);
    padding: 16px 20px;
    border-bottom: none;
    font-weight: 600;
}

.v2-card-body {
    padding: 20px;
}

/* Buttons */
.v2-btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.v2-btn-primary {
    background: var(--ccb-primary);
    color: var(--ccb-white);
}

.v2-btn-primary:hover {
    background: var(--ccb-accent);
    color: var(--ccb-white);
    transform: translateY(-1px);
}

.v2-btn-secondary {
    background: var(--ccb-gray);
    color: var(--ccb-white);
}

.v2-btn-outline {
    background: transparent;
    color: var(--ccb-primary);
    border: 2px solid var(--ccb-primary);
}

.v2-btn-outline:hover {
    background: var(--ccb-primary);
    color: var(--ccb-white);
}

.v2-btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-height: 56px;
}

.v2-btn i {
    margin-right: 8px;
}

/* Forms */
.v2-form-group {
    margin-bottom: 20px;
}

/* Tables */
.v2-table-header {
    background: var(--ccb-primary);
    color: var(--ccb-white);
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    font-size: 0.9rem;
}

.v2-table-header i {
    margin-right: 6px;
    opacity: 0.8;
}

.table-hover tbody tr:hover {
    background-color: rgba(4, 61, 96, 0.05);
}

.btn-group .v2-btn {
    margin-right: 4px;
}

.btn-group .v2-btn:last-child {
    margin-right: 0;
}

.v2-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ccb-dark);
}

.v2-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--ccb-white);
}

.v2-form-control:focus {
    outline: none;
    border-color: var(--ccb-primary);
    box-shadow: 0 0 0 3px rgba(4, 61, 96, 0.1);
}

/* Tables */
.v2-table {
    width: 100%;
    background: var(--ccb-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.v2-table th {
    background: var(--ccb-primary);
    color: var(--ccb-white);
    padding: 16px;
    font-weight: 600;
    border: none;
}

.v2-table td {
    padding: 16px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.v2-table tbody tr:hover {
    background: var(--ccb-light);
}

/* Grid de Módulos */
.v2-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.v2-module-card {
    background: var(--ccb-white);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.v2-module-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--ccb-primary);
    color: inherit;
    text-decoration: none;
}

.v2-module-icon {
    font-size: 3rem;
    color: var(--ccb-primary);
    margin-bottom: 16px;
}

.v2-module-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ccb-dark);
}

.v2-module-description {
    color: var(--ccb-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Alerts */
.v2-alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.v2-alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.v2-alert-success {
    background: #d4edda;
    color: #155724;
}

.v2-alert-warning {
    background: #fff3cd;
    color: #856404;
}

.v2-alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Page Header */
.v2-page-header {
    background: var(--ccb-white);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.v2-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ccb-primary);
    margin: 0;
}

.v2-page-subtitle {
    color: var(--ccb-gray);
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .v2-main {
        padding: 16px 12px;
    }
    
    .v2-modules-grid {
        grid-template-columns: 1fr;
    }
    
    .v2-card-body {
        padding: 16px;
    }
    
    .v2-page-header {
        padding: 20px 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v2-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading */
.v2-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.v2-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--ccb-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search Bar */
.v2-search-container {
    position: relative;
    margin-bottom: 20px;
}

.v2-search-input {
    padding-left: 48px;
}

.v2-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ccb-gray);
    pointer-events: none;
}

/* Badge */
.v2-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 6px;
}

.v2-badge-primary {
    color: var(--ccb-white);
    background-color: var(--ccb-primary);
}

.v2-badge-info {
    color: var(--ccb-white);
    background-color: #17a2b8;
}

.v2-badge-success {
    color: var(--ccb-white);
    background-color: var(--ccb-success);
}

/* Floating Action Button - Desktop only */
.v2-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ccb-primary);
    color: var(--ccb-white);
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(4, 61, 96, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(4, 61, 96, 0.4);
    background: var(--ccb-accent);
    color: var(--ccb-white);
    text-decoration: none;
}

/* Hide FAB on mobile when bottom nav is present */
@media (max-width: 767px) {
    .v2-fab {
        display: none !important;
    }
}

/* Bottom Navigation */
.v2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ccb-white);
    border-top: 1px solid rgba(4, 61, 96, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1040;
}

.v2-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.v2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    min-width: 60px;
    position: relative;
}

.v2-bottom-nav-item:hover {
    color: var(--ccb-primary);
    background: rgba(4, 61, 96, 0.05);
}

.v2-bottom-nav-item.active {
    color: var(--ccb-primary);
    background: rgba(4, 61, 96, 0.1);
}

.v2-bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.v2-bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Navigation Dropdown */
.v2-dropdown-nav {
    position: relative;
    z-index: 1060;
}

.v2-nav-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ccb-white);
    border: 1px solid rgba(4, 61, 96, 0.1);
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    z-index: 1070;
    pointer-events: auto;
    /* Garantir que o dropdown seja visível quando ativo */
    display: block;

}

.v2-dropdown-nav.show .v2-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Dropdown está funcionando - debug removido */

.v2-nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--ccb-text);
    transition: all 0.3s ease;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 1050;
    pointer-events: auto;
}

.v2-nav-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.v2-nav-dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.v2-nav-dropdown-item:only-child {
    border-radius: 12px;
}

.v2-nav-dropdown-item:hover {
    background: var(--ccb-primary);
    color: var(--ccb-white);
}

.v2-nav-dropdown-item i {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Dropdown arrow indicator */
.v2-dropdown-nav::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 8px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 3px solid #6c757d;
    transition: all 0.3s ease;
    display: none;
}

.v2-dropdown-nav.show::after {
    transform: rotate(180deg);
    border-bottom-color: var(--ccb-primary);
}

.v2-dropdown-nav.active::after {
    border-bottom-color: var(--ccb-primary);
}

/* Center FAB in bottom nav */
.v2-bottom-nav-center {
    position: relative;
}

.v2-fab-center {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ccb-primary) 0%, var(--ccb-accent) 100%);
    color: var(--ccb-white);
    border: none;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(4, 61, 96, 0.3);
    transition: all 0.3s ease;
    position: relative;
    top: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-fab-center:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 61, 96, 0.4);
}

.v2-fab-center:active {
    transform: scale(0.95) translateY(-2px);
}

/* Bottom nav active indicator */
.v2-bottom-nav-item.active::before {
    content: '';
    display: none;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ccb-primary);
}

/* Pulse animation for center button */
@keyframes pulse-center {
    0% {
        box-shadow: 0 4px 12px rgba(4, 61, 96, 0.3), 0 0 0 0 rgba(4, 61, 96, 0.4);
    }
    70% {
        box-shadow: 0 4px 12px rgba(4, 61, 96, 0.3), 0 0 0 10px rgba(4, 61, 96, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(4, 61, 96, 0.3), 0 0 0 0 rgba(4, 61, 96, 0);
    }
}

.v2-fab-center.pulse {
    animation: pulse-center 2s infinite;
}

/* Contact Navigation Tabs */
.v2-contact-tabs {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(4, 61, 96, 0.1);
}

.v2-tabs-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.v2-tabs-container::-webkit-scrollbar {
    display: none;
}

.v2-tab-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--ccb-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    min-width: 150px;
    justify-content: center;
}

.v2-tab-item:hover {
    color: var(--ccb-primary);
    background: rgba(4, 61, 96, 0.05);
    text-decoration: none;
}

.v2-tab-item.active {
    color: var(--ccb-primary);
    border-bottom-color: var(--ccb-primary);
    background: rgba(4, 61, 96, 0.05);
    font-weight: 600;
}

.v2-tab-item i {
    font-size: 1.1rem;
}

.v2-tab-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.v2-tab-badge {
    background: var(--ccb-primary);
    color: var(--ccb-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    min-width: 24px;
    text-align: center;
}

.v2-tab-item.active .v2-tab-badge {
    background: var(--ccb-white);
    color: var(--ccb-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile tabs optimization */
@media (max-width: 768px) {
    .v2-tab-item {
        padding: 12px 16px;
        min-width: 120px;
    }
    
    .v2-tab-item span {
        font-size: 0.85rem;
    }
    
    .v2-tab-item i {
        font-size: 1rem;
    }
    
    .v2-tab-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin-left: 6px;
    }
}

/* Tab animation */
.v2-tab-item::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ccb-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.v2-tab-item.active::before {
    transform: scaleX(1);
}

/* Ministry Page Specific Styles */
.ministry-badge {
    background: var(--ccb-primary) !important; /* Default color */
}

.contact-card[data-ministry="ancião"] .ministry-badge,
table tr[data-ministry="ancião"] .ministry-badge {
    background: #4B0082 !important; /* Indigo for elders */
}

.contact-card[data-ministry="diácono"] .ministry-badge,
table tr[data-ministry="diácono"] .ministry-badge {
    background: #006400 !important; /* Dark green for deacons */
}

.contact-card[data-ministry="cooperador"] .ministry-badge,
table tr[data-ministry="cooperador"] .ministry-badge {
    background: var(--ccb-secondary) !important; /* Blue for cooperators */
}

.contact-card[data-ministry*="jovens"] .ministry-badge,
table tr[data-ministry*="jovens"] .ministry-badge {
    background: #FF6B35 !important; /* Orange for youth */
}

/* Ministry Filters - Mobile Optimized */
.v2-ministry-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.v2-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 2px solid rgba(4, 61, 96, 0.2);
    border-radius: 10px;
    background: var(--ccb-white);
    color: var(--ccb-text);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 65px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.v2-filter-btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--ccb-primary);
}

.v2-filter-btn span {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.1;
    word-wrap: break-word;
    max-width: 100%;
}

.v2-filter-btn:hover {
    border-color: var(--ccb-primary);
    background: rgba(4, 61, 96, 0.05);
    transform: translateY(-1px);
}

.v2-filter-btn.active {
    background: var(--ccb-primary) !important;
    color: var(--ccb-white) !important;
    border-color: var(--ccb-primary) !important;
}

.v2-filter-btn.active i {
    color: var(--ccb-white);
}

@media (min-width: 768px) {
    .v2-ministry-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }
    
    .v2-filter-btn {
        flex-direction: row;
        min-height: auto;
        padding: 8px 16px;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .v2-filter-btn i {
        margin-bottom: 0;
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .v2-filter-btn span {
        font-size: 0.9rem;
    }
}

/* Hide/show based on filter */
.contact-card.filtered-out,
table tr.filtered-out {
    display: none !important;
}

/* Animation for cards */
.contact-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

/* Administration Page Specific Styles */
.contact-avatar {
    flex-shrink: 0;
}

.v2-btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    min-height: auto;
}

/* Search and filter styles */
.contact-card[style*="display: none"] {
    display: none !important;
}

/* Responsive administration header */
@media (max-width: 768px) {
    .v2-page-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .v2-page-header .v2-btn {
        margin-top: 12px;
        width: 100%;
    }
} 

/* V2 Form Styles */
.v2-form {
    background: var(--ccb-white);
}

.v2-form-group {
    margin-bottom: 1.5rem;
}

.v2-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ccb-text);
    font-size: 0.9rem;
}

.v2-form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ccb-text);
    background-color: var(--ccb-white);
    border: 2px solid rgba(4, 61, 96, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.v2-form-control:focus {
    border-color: var(--ccb-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(4, 61, 96, 0.1);
}

.v2-form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.v2-input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.v2-input-group .v2-form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.v2-input-group-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
    background-color: rgba(4, 61, 96, 0.05);
    border: 2px solid rgba(4, 61, 96, 0.1);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2-input-group-btn:hover {
    background-color: rgba(4, 61, 96, 0.1);
    color: var(--ccb-primary);
}

.v2-input-group:focus-within .v2-input-group-btn {
    border-color: var(--ccb-primary);
}

.v2-form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.v2-form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(4, 61, 96, 0.1);
}

/* Form validation states */
.v2-form-control.is-valid {
    border-color: #28a745;
}

.v2-form-control.is-invalid {
    border-color: #dc3545;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Responsive form adjustments */
@media (max-width: 768px) {
    .v2-form-control {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .v2-input-group-btn {
        padding: 14px 16px;
    }
    
    .v2-form-footer .row > div {
        margin-bottom: 1rem;
    }
}

/* Estilos Específicos para Salas de Reunião */
.salas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sala-card {
    background: var(--ccb-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(4, 61, 96, 0.05);
}

.sala-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.sala-card-header {
    background: linear-gradient(135deg, var(--ccb-primary), var(--ccb-secondary));
    color: var(--ccb-white);
    padding: 1.5rem;
    text-align: center;
}

.sala-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
    backdrop-filter: blur(10px);
}

.sala-nome {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* Status das salas */
.sala-status-disponivel {
    background: linear-gradient(135deg, var(--ccb-success), #27ae60);
    color: var(--ccb-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sala-status-ocupada {
    background: linear-gradient(135deg, var(--ccb-danger), #c0392b);
    color: var(--ccb-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Cores específicas dos eventos por sala */
.fc-event.evento-safira {
    background: linear-gradient(135deg, #4ECDC4, #26d1c4) !important;
    border-color: #4ECDC4 !important;
    color: white !important;
}

.fc-event.evento-onix {
    background: linear-gradient(135deg, #45B7D1, #3aa5d1) !important;
    border-color: #45B7D1 !important;
    color: white !important;
}

.fc-event.evento-rubi {
    background: linear-gradient(135deg, #E74C3C, #c0392b) !important;
    border-color: #E74C3C !important;
    color: white !important;
}

.fc-event.evento-principal {
    background: linear-gradient(135deg, #9B59B6, #8e44ad) !important;
    border-color: #9B59B6 !important;
    color: white !important;
}

.fc-event.evento-padrao {
    background: linear-gradient(135deg, var(--ccb-secondary), var(--ccb-primary)) !important;
    border-color: var(--ccb-secondary) !important;
    color: white !important;
}

/* Estilos globais do calendário v2 */
.fc-v2-calendar {
    --fc-border-color: rgba(4, 61, 96, 0.08);
    --fc-today-bg-color: rgba(4, 61, 96, 0.05);
    font-family: inherit;
}

.fc-v2-calendar .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(4, 61, 96, 0.08);
}

.fc-v2-calendar .fc-col-header-cell {
    background: linear-gradient(135deg, var(--ccb-primary), var(--ccb-secondary));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-v2-calendar .fc-daygrid-day-number {
    font-weight: 600;
    transition: all 0.2s ease;
}

.fc-v2-calendar .fc-day-today .fc-daygrid-day-number {
    background: var(--ccb-primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(4, 61, 96, 0.3);
}

.fc-v2-calendar .fc-button-primary {
    background: var(--ccb-primary);
    border-color: var(--ccb-primary);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(4, 61, 96, 0.2);
}

.fc-v2-calendar .fc-button-primary:hover {
    background: var(--ccb-secondary);
    border-color: var(--ccb-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 61, 96, 0.3);
}

.fc-v2-calendar .fc-toolbar-title {
    color: var(--ccb-dark);
    font-weight: 700;
}

.fc-v2-calendar .fc-event {
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.fc-v2-calendar .fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fc-v2-calendar .fc-more-link {
    color: var(--ccb-primary);
    font-weight: 600;
    background: rgba(4, 61, 96, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fc-v2-calendar .fc-more-link:hover {
    background: rgba(4, 61, 96, 0.2);
    transform: translateY(-1px);
}

/* Otimizações mobile para salas */
@media (max-width: 768px) {
    .salas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sala-card-header {
        padding: 1rem;
    }

    .sala-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
} 

/* Botão Flutuante Simples de Reporte */
.v2-report-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.v2-report-btn:hover {
    background: #e55a2b;
    transform: scale(1.1);
}

.v2-report-btn:active {
    transform: scale(0.95);
}

/* Modal Simples */
.v2-report-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.v2-report-modal .modal-header {
    background: #ff6b35;
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1rem;
}

.v2-report-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.v2-report-modal .modal-body {
    padding: 1.5rem;
}

.v2-report-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #856404;
}

.v2-report-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}

.v2-report-textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.v2-report-modal .modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.5rem;
}

.v2-report-btn-cancel {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.v2-report-btn-send {
    background: #28a745;
    border-color: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .v2-report-btn {
        bottom: 100px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .v2-report-modal .modal-footer {
        flex-direction: column;
    }
    
    .v2-report-modal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Animação simples */
@keyframes reportBtnFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v2-report-btn {
    animation: reportBtnFadeIn 0.5s ease-out;
} 