/* Modern Theme for Logistica System */

/* ==================== CARDS & PANELS ==================== */
.stat-card {
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 140px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.stat-card .icon {
    font-size: 48px;
    opacity: 0.9;
    float: right;
}

.stat-card .number {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0 5px 0;
}

.stat-card .label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Gradient Colors */
.card-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-success { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-warning { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card-info { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.card-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }
.card-teal { background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%); }
.card-purple { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.card-orange { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }

/* Modern Panels */
.panel-modern {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: none;
}

.panel-modern-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
    background: white;
    border-radius: 8px 8px 0 0;
}

.panel-modern-header i {
    margin-right: 8px;
    color: #667eea;
}

.panel-modern-body {
    padding: 20px;
}

/* Info Boxes */
.info-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-box h4 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Mini Stats */
.stat-mini {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: all 0.2s;
}

.stat-mini:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-mini i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-mini .number {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.stat-mini .label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* ==================== BUTTONS ==================== */
.action-btn {
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    border: none;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.action-btn i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.btn-modern {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ==================== HEADERS ==================== */
.page-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-header-custom h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
}

.page-header-custom .lead {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.page-header-modern {
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.page-header-modern h1 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.page-header-modern .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0 0 0;
}

/* ==================== BADGES & LABELS ==================== */
.badge-modern {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.label-modern {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Status Colors */
.status-nuevo { background-color: #198754; color: white; }
.status-baja { background-color: #ffc107; color: #333; }
.status-defectuoso { background-color: #dc3545; color: white; }
.status-pendiente { background-color: #6c757d; color: white; }
.status-en-proceso { background-color: #0dcaf0; color: white; }
.status-finalizada { background-color: #198754; color: white; }
.status-cancelada { background-color: #dc3545; color: white; }

/* ==================== TABLES ==================== */
.table-modern {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table-modern thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: all 0.2s;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table-modern tbody td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #eee;
}

/* ==================== FORMS ==================== */
.form-modern {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-modern .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-modern .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-modern .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-modern .help-block {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

/* ==================== GRID VIEW ==================== */
.grid-view {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.grid-view .summary {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.grid-view table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.grid-view table thead th {
    padding: 15px;
    border: none;
    font-weight: 600;
}

.grid-view table thead th a {
    color: white;
    text-decoration: none;
}

.grid-view table tbody tr {
    transition: background-color 0.2s;
}

.grid-view table tbody tr:hover {
    background-color: #f8f9fa;
}

.grid-view table tbody td {
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

.grid-view .pagination {
    margin: 15px 0;
}

/* ==================== DETAIL VIEW ==================== */
.detail-view {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-view th {
    background: #f8f9fa;
    font-weight: 600;
    width: 200px;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    color: #333;
}

.detail-view td {
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

/* ==================== ALERTS ==================== */
.alert-modern {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.alert-modern-success {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    color: white;
}

.alert-modern-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-modern-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #333;
}

.alert-modern-info {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

/* ==================== UTILITIES ==================== */
.shadow-sm { box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 8px 16px rgba(0,0,0,0.15); }

.rounded-sm { border-radius: 4px; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .stat-card {
        min-height: 120px;
    }

    .stat-card .number {
        font-size: 28px;
    }

    .action-btn {
        padding: 20px 15px;
    }

    .page-header-custom h1 {
        font-size: 24px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* ==================== PROGRESS BARS ==================== */
.progress-modern {
    height: 25px;
    border-radius: 12px;
    background-color: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-modern .progress-bar {
    line-height: 25px;
    font-weight: 600;
    font-size: 12px;
    transition: width 0.6s ease;
}

/* ==================== CARDS ==================== */
.card-modern {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: none;
    margin-bottom: 20px;
}

.card-modern:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-modern-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

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

.card-modern-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 10px 10px;
}
