/* Admin Views Modern - General Responsive Design */
/* This file provides modern, attractive, and responsive styling for all admin views */

/* Page Container */
.page-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9f9f9 100%);
    min-height: 100vh;
}

/* Breadcrumbs */
.breadcrumbs {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.breadcrumbs:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.breadcrumbs h1 {
    /*font-size: 28px;*/
    font-weight: 700;
    color: #0f172a;
    margin: 2px 15px 0px 0px;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #4338ca 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Portlets */
.portlet {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.portlet:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.portlet-title {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    /*padding: 9px 0px !important;*/
    border-bottom: 1px solid #eef2f6 !important;
    border-radius: 20px 20px 0 0 !important;
}

.portlet-title .caption {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a !important;
    letter-spacing: -0.3px;
}

.portlet-body {
    padding: 28px;
    background: #ffffff;
}

/* Form Elements */
.form-horizontal .form-group {
    margin-bottom: 24px;
    margin-left: 15px;
}

.form-horizontal .control-label {
    font-weight: 400;
    color: #334155;
    /*font-size: 14px;*/
    padding-top: 5px;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 1px 16px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #334155;
}

.form-control:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 6px 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.btn-success,
.btn-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-sm {
    padding: 10px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Tables */
table {
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.table {
    margin-bottom: 0;
    background: #ffffff;
}

.table > thead > tr > th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    font-weight: 700;
    border-bottom: 2px solid #eef2f6;
    padding: 16px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table > tbody > tr > td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.table > tbody > tr {
    transition: all 0.2s ease;
}

.table > tbody > tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* Box Content Alerts */
.box-content.alerts {
    margin-bottom: 20px;
}

.box-content.alerts .alert {
    margin-bottom: 0;
}

/* Input Groups */
.input-group {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.input-group-btn:last-child > .btn {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

/* Select Dropdowns */
select.form-control {
    border-radius: 12px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%234338ca' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Textarea */
textarea.form-control {
    border-radius: 12px;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: inherit;
}

/* Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    transform: scale(1.1);
}

/* Pagination */
.pagination {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 10px;
    margin: 0;
    border: 2px solid #e2e8f0;
    color: #334155;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}

.pagination > li > a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.1);
}

.pagination > li.active > a,
.pagination > li.active > span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination > li.disabled > a,
.pagination > li.disabled > span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Well Elements */
.well {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
}

.well:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

/* Badge and Labels */
.badge,
.label {
    border-radius: 8px;
    padding: 11px 17px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.badge:hover,
.label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Modal Improvements */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    border-bottom: 1px solid #eef2f6;
    border-radius: 20px 20px 0 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.modal-body {
    padding: 28px;
    background: #ffffff;
}

.modal-footer {
    border-top: 1px solid #eef2f6;
    border-radius: 0 0 20px 20px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.modal-backdrop {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

/* Portlet Light Bordered */
.portlet.light.bordered {
    border: 1px solid #eef2f6;
}

.portlet.light .portlet-title {
    background: transparent;
}

/* Caption Font Dark */
.caption.font-dark {
    color: #0f172a;
}

.caption-subject.bold.uppercase {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Responsive */
.table-responsive {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* Container Fluid */
.container-fluid {
    /*padding-left: 0;*/
    padding-right: 16px;
}

/* Alert Messages */
.alert {
    border-radius: 14px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.8;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-content {
        padding: 16px;
    }
    
    .breadcrumbs {
        padding: 18px 22px;
        border-radius: 14px;
    }
    
    .breadcrumbs h1 {
        font-size: 24px;
    }
    
    .portlet-title,
    .portlet-body {
        padding: 18px 20px;
    }
    
    .portlet-title .caption {
        font-size: 16px;
    }
    
    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 12px;
    }
    
    .breadcrumbs {
        padding: 16px 18px;
        border-radius: 12px;
        margin-top: 20px;
    }
    
    .breadcrumbs h1 {
        font-size: 22px;
    }
    
    .portlet {
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .portlet-title {
        padding: 16px 18px;
    }
    
    .portlet-body {
        padding: 16px 18px;
    }
    
    .form-control {
        /*padding: 10px 14px;*/
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .table > thead > tr > th {
        padding: 12px 10px;
        font-size: 11px;
    }
    
    .table > tbody > tr > td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 10px;
    }
    
    .breadcrumbs {
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .breadcrumbs h1 {
        font-size: 20px;
    }
    
    .portlet {
        border-radius: 14px;
    }
    
    .portlet-title,
    .portlet-body {
        padding: 14px 16px;
    }
    
    .portlet-title .caption {
        font-size: 15px;
    }
    
    .form-control {
        /*padding: 10px 12px;*/
        font-size: 14px;
    }
    
    .btn {
        width: 100%;
        margin: 6px 0;
        display: block;
        padding: 12px 20px;
    }
    
    .btn-sm {
        width: 100%;
        margin: 6px 0;
        display: block;
        padding: 10px 16px;
    }
    
    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .table > thead > tr > th {
        font-size: 10px;
        padding: 10px 6px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .modal-header .modal-title {
        font-size: 18px;
    }
    
    .well {
        padding: 14px;
    }
    
    .pagination > li > a,
    .pagination > li > span {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 36px;
    }
}
