/**
 * GeoIBRAM Components CSS - Movido para o tema
 * Componentes padronizados para o sistema GeoIBRAM
 */

/* ========================================
   COMPONENTES BASE
   ======================================== */

/* Card Component */
.geoibram-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

.geoibram-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.geoibram-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.geoibram-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.geoibram-card-body {
    padding: 1.5rem;
}

.geoibram-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

/* Button Component */
.geoibram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    line-height: 1.5;
    min-height: 2.5rem;
}

.geoibram-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.5);
}

.geoibram-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Variants */
.geoibram-button-primary {
    background-color: #F0B428;
    color: #ffffff;
    border-color: #F0B428;
}

.geoibram-button-primary:hover:not(:disabled) {
    background-color: #e5a623;
    border-color: #e5a623;
}

.geoibram-button-secondary {
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}

.geoibram-button-secondary:hover:not(:disabled) {
    background-color: #4b5563;
    border-color: #4b5563;
}

.geoibram-button-success {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.geoibram-button-success:hover:not(:disabled) {
    background-color: #059669;
    border-color: #059669;
}

.geoibram-button-danger {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.geoibram-button-danger:hover:not(:disabled) {
    background-color: #dc2626;
    border-color: #dc2626;
}

.geoibram-button-warning {
    background-color: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
}

.geoibram-button-warning:hover:not(:disabled) {
    background-color: #d97706;
    border-color: #d97706;
}

.geoibram-button-outline {
    background-color: transparent;
    color: #F0B428;
    border-color: #F0B428;
}

.geoibram-button-outline:hover:not(:disabled) {
    background-color: #F0B428;
    color: #ffffff;
}

.geoibram-button-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2rem;
}

.geoibram-button-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 3rem;
}

/* Input Component */
.geoibram-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.geoibram-input:focus {
    border-color: #F0B428;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.1);
}

.geoibram-input:disabled {
    background-color: #f9fafb;
    opacity: 0.6;
}

.geoibram-input-error {
    border-color: #ef4444;
}

.geoibram-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Select Component */
.geoibram-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.geoibram-select:focus {
    border-color: #F0B428;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.1);
}

/* Textarea Component */
.geoibram-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    resize: vertical;
    min-height: 100px;
}

.geoibram-textarea:focus {
    border-color: #F0B428;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(240, 180, 40, 0.1);
}

/* Dashboard Components */
.geoibram-dashboard {
    background: #f8fafc;
    min-height: 100vh;
}

.geoibram-dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.geoibram-dashboard-content {
    padding: 2rem 0;
}

.geoibram-dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    min-height: calc(100vh - 80px);
}

/* Stats Cards */
.geoibram-stats-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.geoibram-stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #F0B428;
    line-height: 1;
}

.geoibram-stats-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.geoibram-stats-icon {
    width: 3rem;
    height: 3rem;
    background: #F0B428;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Alert Component */
.geoibram-alert {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.geoibram-alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.geoibram-alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.geoibram-alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.geoibram-alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Badge Component */
.geoibram-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.geoibram-badge-primary {
    background-color: #F0B428;
    color: #ffffff;
}

.geoibram-badge-success {
    background-color: #10b981;
    color: #ffffff;
}

.geoibram-badge-warning {
    background-color: #f59e0b;
    color: #ffffff;
}

.geoibram-badge-danger {
    background-color: #ef4444;
    color: #ffffff;
}

/* Modal Component */
.geoibram-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.geoibram-modal.show {
    opacity: 1;
    visibility: visible;
}

.geoibram-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.geoibram-modal.show .geoibram-modal-content {
    transform: scale(1);
}

.geoibram-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.geoibram-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.geoibram-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.geoibram-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.geoibram-modal-body {
    padding: 1.5rem;
}

.geoibram-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Utility Classes */
.geoibram-mt-1 { margin-top: 0.25rem; }
.geoibram-mt-2 { margin-top: 0.5rem; }
.geoibram-mt-3 { margin-top: 0.75rem; }
.geoibram-mt-4 { margin-top: 1rem; }
.geoibram-mt-5 { margin-top: 1.25rem; }
.geoibram-mt-6 { margin-top: 1.5rem; }

.geoibram-mb-1 { margin-bottom: 0.25rem; }
.geoibram-mb-2 { margin-bottom: 0.5rem; }
.geoibram-mb-3 { margin-bottom: 0.75rem; }
.geoibram-mb-4 { margin-bottom: 1rem; }
.geoibram-mb-5 { margin-bottom: 1.25rem; }
.geoibram-mb-6 { margin-bottom: 1.5rem; }

.geoibram-ml-1 { margin-left: 0.25rem; }
.geoibram-ml-2 { margin-left: 0.5rem; }
.geoibram-ml-3 { margin-left: 0.75rem; }
.geoibram-ml-4 { margin-left: 1rem; }

.geoibram-mr-1 { margin-right: 0.25rem; }
.geoibram-mr-2 { margin-right: 0.5rem; }
.geoibram-mr-3 { margin-right: 0.75rem; }
.geoibram-mr-4 { margin-right: 1rem; }

/* Display Classes */
.geoibram-hidden { display: none; }
.geoibram-block { display: block; }
.geoibram-inline-block { display: inline-block; }
.geoibram-flex { display: flex; }
.geoibram-inline-flex { display: inline-flex; }

/* Text Classes */
.geoibram-text-center { text-align: center; }
.geoibram-text-left { text-align: left; }
.geoibram-text-right { text-align: right; }

.geoibram-text-sm { font-size: 0.875rem; }
.geoibram-text-base { font-size: 1rem; }
.geoibram-text-lg { font-size: 1.125rem; }
.geoibram-text-xl { font-size: 1.25rem; }

.geoibram-font-normal { font-weight: 400; }
.geoibram-font-medium { font-weight: 500; }
.geoibram-font-semibold { font-weight: 600; }
.geoibram-font-bold { font-weight: 700; }

/* Color Classes */
.geoibram-text-primary { color: #F0B428; }
.geoibram-text-success { color: #10b981; }
.geoibram-text-warning { color: #f59e0b; }
.geoibram-text-danger { color: #ef4444; }
.geoibram-text-muted { color: #6b7280; }

/* Responsive Design */
@media (max-width: 768px) {
    .geoibram-card-body {
        padding: 1rem;
    }
    
    .geoibram-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .geoibram-button {
        width: 100%;
        justify-content: center;
    }
    
    .geoibram-modal-footer {
        flex-direction: column;
    }
    
    .geoibram-modal-footer .geoibram-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .geoibram-stats-number {
        font-size: 1.5rem;
    }
    
    .geoibram-stats-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}
