/**
 * Galzer O.S - Frontend Styles
 * Tema: Escuro Minimalista Profissional
 */

:root {
    --galzer-primary: #ff0f0f;
    --galzer-secondary: #2c3e50;
    --galzer-dark: #1a1a1a;
    --galzer-darker: #0d0d0d;
    --galzer-light: #ecf0f1;
    --galzer-success: #27ae60;
    --galzer-warning: #f39c12;
    --galzer-danger: #e74c3c;
    --galzer-border: #444;
    --galzer-text: #fff;
    --galzer-text-muted: #bbb;
}

.swal2-popup {
    background: var(--galzer-dark) !important;
    color: var(--galzer-text) !important;
}

.swal2-title {
    color: var(--galzer-text) !important;
}

.swal2-content {
    color: var(--galzer-text-muted) !important;
}

.swal2-confirm {
    background: var(--galzer-primary) !important;
}

.swal2-cancel {
    background: #95a5a6 !important;
}


.galzer-os-form-container {
    max-width: 980px;
    margin: 40px auto;
    background: linear-gradient(180deg, #0e0e0e4f, #151515);
    border-radius: 50px;
    border: 1px solid #444;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.galzer-os-form-header {
    background: #97969617;
    color: #fff;
    padding: 30px;
    text-align: left;
}

.galzer-os-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.galzer-os-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

#galzer-os-form {
    padding: 30px;
}

.galzer-form-section {
    background: linear-gradient(180deg, #0e0e0e4f, #151515);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 30px;
    /* padding-bottom: 30px; */
    border-bottom: 1px solid #c82227;   
}

.galzer-form-section:last-of-type {
    border-bottom: none;
}

.galzer-form-section h3 {
    color: #eb3237;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 500;
}

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

.galzer-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.galzer-form-group {
    display: flex;
    flex-direction: column;
}

.galzer-form-group label {
    color: #bbb;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.galzer-form-group input[type="text"],
.galzer-form-group input[type="email"],
.galzer-form-group input[type="date"],
.galzer-form-group textarea {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.galzer-form-group input[type="text"]:focus,
.galzer-form-group input[type="email"]:focus,
.galzer-form-group input[type="date"]:focus,
.galzer-form-group textarea:focus {
    outline: none;
    border-color: #ff0f0f;
    box-shadow: 0 0 0 3px rgba(219, 51, 51, 0.1);
}

.galzer-form-group input[type="file"] {
    background: #2a2a2a;
    border: 2px dashed #444;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galzer-form-group input[type="file"]:hover {
    border-color: #ff0f0f;
}

.galzer-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.description {
    color: #777;
    font-size: 12px;
    margin: 5px 0 0 0;
}

.galzer-cep-loader {
    color: #ff0f0f;
    font-size: 12px;
    margin-top: 5px;
}

.galzer-form-actions {
    margin-top: 30px;
    text-align: center;
}

.galzer-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.galzer-btn-primary {
    background: linear-gradient(135deg, #c82227 0%, #8d0005 100%);
    border: 1px solid rgba(200, 35, 40, 1) !important;
    color: #fff !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(200, 34, 39, 0.25);
}

.galzer-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 0, 8, 0.8);
}

.galzer-btn-primary:active {
    transform: translateY(0);
}

.galzer-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .galzer-os-form-container {
        margin: 20px;
    }
    
    #galzer-os-form {
        padding: 20px;
    }
    
    .galzer-two-columns {
        grid-template-columns: 1fr;
    }
}

/*=== Rastreio ===*/
.galzer-rastreio-container {
   max-width: 980px;
    margin: 40px auto;
    background: linear-gradient(180deg, #0e0e0e4f, #151515);
    border-radius: 50px;
    border: 1px solid #444;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.galzer-rastreio-header {
    background: #97969617;
    color: #fff;
    padding: 30px;
    text-align: left;
}

.galzer-rastreio-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.galzer-rastreio-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.galzer-rastreio-search {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box input {
    flex: 1;
    background: #2a2a2a;
    border: 2px dashed #444;
    color: #fff;
    padding: 12px;
    border-radius: 25px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff0f0f;
    box-shadow: 0 0 0 3px rgba(219, 51, 51, 0.1);
}

.galzer-resultado-header {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 30px;
}

.protocolo-info {
    margin-bottom: 20px;
}

.protocolo-info h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.status-badge {
    display: inline-block;
}

.status-badge span {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #c82227 0%, #8d0005 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.datas-info {
    display: flex;
    gap: 30px;
    color: #bbb;
    font-size: 14px;
}

.datas-info p {
    margin: 5px 0;
}

.galzer-resultado-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin:30px;
}

.galzer-resultado-card {
    background: #1a1a1a;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.galzer-resultado-card.full-width {
    grid-column: 1 / -1;
}

.galzer-resultado-card h4 {
    color: #ff0f0f;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.card-content p {
    color: #bbb;
    margin: 10px 0;
    line-height: 1.6;
}

.card-content p strong {
    color: #fff;
}

.defeito-text {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #ff0f0f;
    margin-top: 10px;
}

.logistica-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.logistica-grid > div {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 4px;
}

.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #ff0f0f;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 2px;
    height: calc(100% + 15px);
    background: #333;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item strong {
    color: #ff0f0f;
    display: block;
    margin-bottom: 5px;
}

.timeline-item p {
    color: #bbb;
    margin: 0;
}

.no-history {
    color: #777;
    text-align: center;
    padding: 20px;
}

.galzer-rastreio-orcamento {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.galzer-rastreio-orcamento thead {
    background: #2a2a2a;
}

.galzer-rastreio-orcamento th {
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.galzer-rastreio-orcamento td {
    color: #bbb;
    padding: 12px;
    border-bottom: 1px solid #333;
}

.galzer-rastreio-orcamento tr.total {
    background: #2a2a2a;
}

.galzer-rastreio-orcamento tr.total td {
    color: #ff0f0f;
    font-weight: 600;
    font-size: 18px;
    border: none;
}

.galzer-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.galzer-badge-success {
    background: #27ae60;
    color: #fff;
}

.galzer-badge-warning {
    background: #f39c12;
    color: #fff;
}

.galzer-badge-danger {
    background: #e74c3c;
    color: #fff;
}

@media (max-width: 768px) {
    .galzer-rastreio-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .galzer-rastreio-header {
        padding: 25px;
    }
    
    .galzer-rastreio-search {
        padding: 20px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .galzer-resultado-grid {
        grid-template-columns: 1fr;
    }
    
    .logistica-grid {
        grid-template-columns: 1fr;
    }
    
    .datas-info {
        flex-direction: column;
        gap: 5px;
    }
}
