/* Tickets Page Styles */

/* Filters Container */
.filters-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

/* Table Styles */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.add-ticket-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-ticket-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Status Tags */
.status-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.status-progress {
    background: rgba(255, 145, 0, 0.1);
    color: #ff9100;
}

.status-waiting {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-resolved {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

/* Priority Tags */
.priority-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.priority-low {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.priority-medium {
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
}

.priority-high {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.priority-critical {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

/* SLA Tags */
.sla-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.sla-normal {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.sla-warning {
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
}

.sla-critical {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
.file-upload {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload i {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cancel-btn,
.save-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.save-btn {
    background: var(--primary-color);
    border: none;
    color: white;
}

.cancel-btn:hover {
    background: #eee;
}

.save-btn:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05),
                -5px -5px 15px rgba(255, 255, 255, 0.9);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(67, 97, 238, 0.1),
        rgba(67, 97, 238, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.1),
                -8px -8px 20px rgba(255, 255, 255, 0.95);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card i {
    font-size: 32px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
    transform-origin: center;
    transition: all 0.4s ease;
}

.dashboard-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.dashboard-card h3 {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
}

.dashboard-card .counter-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para cada card */
.dashboard-card:nth-child(1) {
    border-left: 4px solid #ff4757;
}

.dashboard-card:nth-child(1) .counter-value {
    color: #ff4757;
}

.dashboard-card:nth-child(2) {
    border-left: 4px solid #ffa502;
}

.dashboard-card:nth-child(2) .counter-value {
    color: #ffa502;
}

.dashboard-card:nth-child(3) {
    border-left: 4px solid #2ed573;
}

.dashboard-card:nth-child(3) .counter-value {
    color: #2ed573;
}

.dashboard-card:nth-child(4) {
    border-left: 4px solid #1e90ff;
}

.dashboard-card:nth-child(4) .counter-value {
    color: #1e90ff;
}

/* Animação de pulso para cards críticos */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.dashboard-card:nth-child(1) {
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .dashboard-card .counter-value {
        font-size: 28px;
    }
    
    .dashboard-card i {
        font-size: 28px;
    }
} 