/* Custom Styles for RPA Research Fund System */

body {
    font-family: 'Sarabun', 'Kanit', sans-serif;
    background-color: #ecebeb;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

.alert {
    border-radius: 0.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline > div {
    position: relative;
    padding-left: 1.5rem;
}

.timeline > div::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid #fff;
}

footer {
    margin-top: auto;
}

/* Modern Menu Cards */
.menu-card {
    border-radius: 15px !important;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.2) !important;
}

.menu-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.menu-card:hover .menu-icon {
    transform: scale(1.1) rotate(5deg);
}

.menu-btn {
    transition: all 0.3s ease !important;
    border-radius: 20px !important;
}

.menu-btn:hover {
    background: #3498db !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    border-color: #3498db !important;
}

/* Override Bootstrap success color (#198754) to #2d696a */
.bg-success,
.bg-success:hover {
    background-color: #2d696a !important;
}
.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #2d696a !important;
    border-color: #2d696a !important;
}
.text-success {
    color: #2d696a !important;
}
.progress-bar.bg-success {
    background-color: #2d696a !important;
}
.border-success {
    border-color: #2d696a !important;
}
.rounded-circle.bg-success {
    background-color: #2d696a !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .menu-card {
        margin-bottom: 1rem;
    }
}
