/* General Admin Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #212529 !important;
}

.sidebar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #0d6efd;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #0d6efd;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-link.active i {
    color: #0d6efd;
}

/* Main content area */
main {
    padding-top: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Stats Cards */
.stats-card {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-card .stats-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.5);
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #6c757d;
}

.table-action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

/* Form Controls */
.form-control {
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Custom File Upload Button */
.custom-file-upload {
    border: 1px solid #ced4da;
    display: inline-block;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #e9ecef;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-weight: 700;
    color: #0d6efd;
}

.login-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Company Logo Preview */
.logo-preview {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    .sidebar .nav-link {
        border-left: none;
        border-left: 3px solid transparent;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Summernote Editor */
.note-editor.note-frame {
    border-color: #ced4da;
    box-shadow: none;
}

.note-editor.note-frame .note-statusbar {
    background-color: #f8f9fa;
}
