/**
 * CNSS Declarations Front Office Styles
 * Dedicated CSS for front office pages only
 */

/* Main Container */
.cnss-front-container {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Panel Headers */
.cnss-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.cnss-panel-header .panel-heading {
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    font-weight: 600;
    padding: 20px;
    border-radius: 15px;
    
}

.cnss-panel-header .panel-heading i {
    margin-right: 10px;
    font-size: 22px;
}

.cnss-panel-header .panel-heading small {
    opacity: 0.9;
    font-size: 14px;
    font-weight: 400;
}

/* Breadcrumb */
.cnss-breadcrumb {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 0;
    border: 1px solid #e9ecef;
}

.cnss-breadcrumb > li {
    margin-bottom: 0;
}

.cnss-breadcrumb > li + li:before {
    content: "/";
    color: #6c757d;
    padding: 0 8px;
}

.cnss-breadcrumb > li a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.cnss-breadcrumb > li a:hover {
    color: #764ba2;
}

.cnss-breadcrumb > li.active {
    color: #495057;
    font-weight: 500;
}

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

.cnss-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cnss-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
}

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

/* Badges */
.cnss-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 11px;
    display: inline-block;
}

.cnss-badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cnss-badge-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cnss-badge-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 80%);
}

.cnss-badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cnss-badge-danger {
    background: linear-gradient(135deg, #f5576c 0%, #d63031 100%);
}

/* Labels */
.cnss-label {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    display: inline-block;
}

.cnss-label-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Buttons */
.cnss-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.cnss-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cnss-btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.cnss-btn-info:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.cnss-btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.cnss-btn-warning:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.cnss-btn-danger {
    background: linear-gradient(135deg, #f5576c 0%, #d63031 100%);
    color: white;
}

.cnss-btn-danger:hover {
    background: linear-gradient(135deg, #d63031 0%, #f5576c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.cnss-btn-default {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.cnss-btn-default:hover {
    background: #e9ecef;
    color: #343a40;
}

/* Form Elements */
.cnss-form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.cnss-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.cnss-form-group {
    margin-bottom: 20px;
}

.cnss-form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

/* Empty States */
.cnss-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.cnss-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #dee2e6;
}

.cnss-empty-state h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

.cnss-empty-state p {
    color: #adb5bd;
    font-size: 16px;
}

/* Loading States */
.cnss-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: cnss-spin 1s linear infinite;
}

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

/* Notifications */
.cnss-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: cnss-slide-in 0.3s ease-out;
}

.cnss-notification-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 80%);
    color: white;
}

.cnss-notification-error {
    background: linear-gradient(135deg, #f5576c 0%, #d63031 100%);
    color: white;
}

@keyframes cnss-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cnss-front-container {
        margin-top: 10px;
        margin-bottom: 20px;
    }
    
    .cnss-panel-header .panel-heading {
        font-size: 20px;
        padding: 15px;
    }
    
    .cnss-panel-header .panel-heading small {
        display: block;
        margin-top: 5px;
        font-size: 12px;
    }
    
    .cnss-table th,
    .cnss-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .cnss-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .cnss-form-control {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .cnss-empty-state {
        padding: 40px 15px;
    }
    
    .cnss-empty-state-icon {
        font-size: 48px;
    }
    
    .cnss-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .cnss-table {
        font-size: 11px;
    }
    
    .cnss-panel-header .panel-heading {
        font-size: 18px;
    }
    
    .cnss-breadcrumb {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Animations and Transitions */
.cnss-fade-in {
    animation: cnss-fade-in 0.5s ease-out;
}

@keyframes cnss-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cnss-hover-lift {
    transition: transform 0.2s ease;
}

.cnss-hover-lift:hover {
    transform: translateY(-2px);
}

/* Special Elements */
.cnss-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cnss-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cnss-section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cnss-section-title i {
    color: #667eea;
}

/* Utility Classes */
.cnss-text-center {
    text-align: center;
}

.cnss-text-right {
    text-align: right;
}

.cnss-mb-3 {
    margin-bottom: 20px;
}

.cnss-mt-3 {
    margin-top: 20px;
}

.cnss-no-border {
    border: none !important;
}

.cnss-rounded {
    border-radius: 8px;
}

.cnss-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cnss-shadow-lg {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}