/**
 * Modern Admin UI Styles
 * Provides rounded buttons and modern design elements for admin pages
 */

/* Modern Rounded Buttons */
.btn, button[class*="btn-"] {
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn:active {
    transform: translateY(0);
}

/* Gradient Buttons */
.btn-primary {
    background: linear-gradient(135deg, #448F9E, #5a9fb5) !important;
    border: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a9fb5, #6db5ca) !important;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1aa179) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e35d6a) !important;
    border: none !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #e35d6a) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffca2c) !important;
    border: none !important;
    color: #000 !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #ffc720) !important;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #20c997) !important;
    border: none !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #1aa179) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96) !important;
    border: none !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d) !important;
}

/* Outline Buttons */
.btn-outline-primary {
    border-radius: 50px !important;
    border: 2px solid #448F9E !important;
    color: #448F9E !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #448F9E !important;
    color: white !important;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-radius: 50px !important;
    border: 2px solid #6c757d !important;
}

.btn-outline-secondary:hover {
    background: #6c757d !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Button Groups */
.btn-group .btn {
    border-radius: 50px !important;
}

.btn-group .btn:first-child {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}

.btn-group .btn:last-child {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Small Buttons */
.btn-sm {
    padding: 0.375rem 1rem !important;
    font-size: 0.875rem;
}

/* Large Buttons */
.btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1.125rem;
}

/* Icon Buttons */
.btn i {
    margin-right: 0.5rem;
}

.btn i:only-child {
    margin-right: 0;
}

/* Card Enhancements */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #448F9E;
    box-shadow: 0 0 0 0.2rem rgba(68, 143, 158, 0.25);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

/* Badges */
.badge {
    border-radius: 50px;
    padding: 0.35em 0.85em;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modals */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(4px);
}

/* Pagination */
.pagination .page-link {
    border-radius: 50px;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #448F9E, #5a9fb5);
    border-color: #448F9E;
}

/* Progress Bars */
.progress {
    border-radius: 50px;
    height: 1.25rem;
}

.progress-bar {
    border-radius: 50px;
}

/* List Groups */
.list-group {
    border-radius: 12px;
}

.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Tooltips */
.tooltip-inner {
    border-radius: 8px;
}

/* Popovers */
.popover {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Navbar in Admin */
.navbar .btn {
    margin: 0 0.25rem;
}

/* Custom Admin Specific */
.admin-header {
    background: linear-gradient(135deg, #448F9E, #5a9fb5);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-card {
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Status Indicators */
.status-active {
    color: #28a745;
    font-weight: 600;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Action Buttons Row */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 0 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn {
        padding: 0.375rem 1rem !important;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem !important;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}
