
/* Professional Design Styles for MasaPOS */

/* Font and Typography */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

h1 {
    font-size: 28px;
    color: #2c3e50;
}

h2 {
    font-size: 24px;
    color: #34495e;
}

h3 {
    font-size: 20px;
    color: #34495e;
}

h4 {
    font-size: 18px;
    color: #34495e;
}

/* Header and Navigation */
.main-header {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #3498db;
}

.main-header .logo {
    font-weight: 700;
    font-size: 20px;
}

.main-header .navbar {
    background-color: transparent !important;
}

.main-header .navbar .nav > li > a {
    color: #ecf0f1;
    font-weight: 500;
    font-size: 14px;
    padding: 15px 12px;
    transition: all 0.3s ease;
}

.main-header .navbar .nav > li > a:hover,
.main-header .navbar .nav > li > a:active,
.main-header .navbar .nav > li > a:focus {
    background-color: rgba(52, 152, 219, 0.2);
    color: #ffffff;
}

/* Sidebar */
.main-sidebar {
    background-color: #34495e;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-menu > li > a {
    color: #ecf0f1;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li.active > a {
    background-color: rgba(52, 152, 219, 0.2);
    color: #ffffff;
    border-left: 3px solid #3498db;
}

.sidebar-menu > li > .treeview-menu {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-menu > li > .treeview-menu > li > a {
    color: #bdc3c7;
    font-size: 13px;
    padding: 10px 15px 10px 30px;
}

.sidebar-menu > li > .treeview-menu > li > a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #ffffff;
}

/* Content Area */
.content-wrapper {
    background-color: #f5f7fa;
    min-height: calc(100vh - 50px);
}

.content {
    padding: 20px;
}

/* Boxes and Cards */
.box {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: none;
    margin-bottom: 20px;
    overflow: hidden;
}

.box-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 20px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.box-body {
    background-color: #ffffff;
    padding: 20px;
}

.box-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    padding: 15px 20px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.table thead {
    background-color: #3498db;
    color: #ffffff;
}

.table thead th {
    font-weight: 600;
    font-size: 14px;
    border-bottom: none;
    padding: 15px 12px;
}

.table tbody td {
    padding: 12px;
    border-top: 1px solid #eaeaea;
    vertical-align: middle;
}

.table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #f1f7fd;
}

/* Data Tables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 4px !important;
    margin: 0 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #3498db !important;
    color: white !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #2980b9 !important;
    color: white !important;
    border: none !important;
}

/* Modals */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #3498db;
    color: #ffffff;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.8;
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
}

/* Select2 */
.select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 40px;
    box-shadow: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    border-left: 4px solid #3498db;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #e67e22;
    border-left: 4px solid #f39c12;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #eaeaea;
}

.nav-tabs > li > a {
    color: #7f8c8d;
    border-radius: 6px 6px 0 0;
    border: none;
    margin-right: 5px;
    font-weight: 500;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #3498db;
    background-color: #ffffff;
    border: none;
    border-bottom: 2px solid #3498db;
}

.tab-content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 767px) {
    .content {
        padding: 15px;
    }

    .box-header {
        padding: 12px 15px;
        font-size: 15px;
    }

    .box-body {
        padding: 15px;
    }

    .table {
        font-size: 12px;
    }

    .table thead th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .table tbody td {
        padding: 8px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .form-control {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Professional UI Elements */
.professional-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.professional-card-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.professional-card-title {
    font-size: 18px;
    margin: 0;
    color: #2c3e50;
}

.professional-card-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

.professional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.professional-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.professional-list li:last-child {
    border-bottom: none;
}

.professional-list li:hover {
    background-color: #f8f9fa;
}

.professional-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.professional-badge-primary {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.professional-badge-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.professional-badge-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.professional-badge-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Professional Table Enhancements */
.professional-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.professional-table thead th {
    background-color: #3498db;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 15px 12px;
}

.professional-table tbody tr {
    transition: all 0.3s ease;
}

.professional-table tbody td {
    padding: 12px;
    border-top: 1px solid #eaeaea;
}

.professional-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.professional-table tbody tr:hover {
    background-color: #f1f7fd;
}

/* Professional Form Enhancements */
.professional-form-group {
    margin-bottom: 20px;
}

.professional-form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.professional-form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.professional-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    display: block;
}

/* Professional Button Enhancements */
.professional-btn {
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.professional-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.professional-btn-primary {
    background-color: #3498db;
    color: #ffffff;
}

.professional-btn-primary:hover {
    background-color: #2980b9;
    color: #ffffff;
}

.professional-btn-success {
    background-color: #2ecc71;
    color: #ffffff;
}

.professional-btn-success:hover {
    background-color: #27ae60;
    color: #ffffff;
}

.professional-btn-warning {
    background-color: #f39c12;
    color: #ffffff;
}

.professional-btn-warning:hover {
    background-color: #e67e22;
    color: #ffffff;
}

.professional-btn-danger {
    background-color: #e74c3c;
    color: #ffffff;
}

.professional-btn-danger:hover {
    background-color: #c0392b;
    color: #ffffff;
}

/* Professional Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator-active {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-indicator-active::before {
    background-color: #2ecc71;
}

.status-indicator-inactive {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.status-indicator-inactive::before {
    background-color: #e74c3c;
}

.status-indicator-pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.status-indicator-pending::before {
    background-color: #f39c12;
}
