/* ============================
   COMMON.CSS - Shared Styles
   International Science Journal
   ============================ */

/* ============================
   CARD STYLES
   ============================ */
.card {
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 20px 25px;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%) !important;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.card-header h4 {
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 25px;
}

.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 15px 25px;
}

/* Shadow variations */
.shadow-sm {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}

/* ============================
   BUTTON STYLES
   ============================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    box-shadow: 0 5px 20px rgba(30,60,114,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #198754 100%);
    box-shadow: 0 5px 20px rgba(25,135,84,0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: #333;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
    box-shadow: 0 5px 20px rgba(255,193,7,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    box-shadow: 0 5px 20px rgba(220,53,69,0.4);
}

.btn-outline-primary {
    border: 2px solid #2a5298;
    color: #2a5298;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-color: transparent;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* ============================
   FORM STYLES
   ============================ */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42,82,152,0.15);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.form-check-input:checked {
    background-color: #2a5298;
    border-color: #2a5298;
}

/* ============================
   TABLE STYLES
   ============================ */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table thead th {
    font-weight: 600;
    color: #333;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(42,82,152,0.05);
}

/* ============================
   BADGE STYLES
   ============================ */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* ============================
   ALERT STYLES
   ============================ */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(25,135,84,0.1) 0%, rgba(32,201,151,0.1) 100%);
    color: #198754;
    border-left: 4px solid #198754;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220,53,69,0.1) 0%, rgba(200,35,51,0.1) 100%);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, rgba(13,202,240,0.1) 0%, rgba(10,162,192,0.1) 100%);
    color: #0dcaf0;
    border-left: 4px solid #0dcaf0;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255,193,7,0.1) 0%, rgba(253,126,20,0.1) 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ============================
   PAGINATION STYLES
   ============================ */
.pagination {
    gap: 5px;
}

.page-item .page-link {
    border-radius: 8px;
    border: none;
    padding: 10px 15px;
    color: #333;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: rgba(42,82,152,0.1);
    color: #2a5298;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

/* ============================
   UTILITY STYLES
   ============================ */
.text-primary {
    color: #2a5298 !important;
}

.text-gradient {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.border-gradient {
    border-image: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) 1;
}

/* Text alignment */
.text-justify {
    text-align: justify;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ============================
   RESPONSIVE ADJUSTMENTS
   ============================ */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }

    .btn {
        padding: 8px 16px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px;
        font-size: 0.9rem;
    }
}
