/* Bootstrap is loaded via CDN in app.blade.php */
/* @import 'bootstrap/dist/css/bootstrap.min.css'; */

body {
    font-family: 'Source Sans Pro', 'Nunito', sans-serif;
    background-color: #1a3642;
}

.app {
    min-height: 100vh;
}

/* ============================================
   MODERN FORM STYLES
   ============================================ */

/* Modern Input Fields */
/* .form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
} */

/* Modern Select Dropdowns */
/* .form-control select,
select.form-control,
select.form-control-sm,
select.form-control-lg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
    background-color: #fff !important;
    color: #000 !important;
}

/* Ensure selected dropdown text is black */
select.form-control,
select.form-control-sm,
select.form-control-lg,
select.form-control option,
select.form-control-sm option,
select.form-control-lg option {
    color: #000 !important;
    background-color: #fff !important;
}

select.form-control:focus,
select.form-control-sm:focus,
select.form-control-lg:focus {
    color: #000 !important;
    background-color: #fff !important;
}

/* Ensure selected option text is black */
select.form-control option:checked,
select.form-control-sm option:checked,
select.form-control-lg option:checked {
    color: #000 !important;
    background-color: #fff !important;
} */

/* Modern Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.3px;
}

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

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

/* .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e082ea 0%, #e4465b 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #3d9be8 0%, #00d9e6 100%);
    color: white;
} */

/* Modern Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-group.row label {
    padding-top: 10px;
}

/* Modern Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

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

/* .card-header {
    border-radius: 12px 12px 0 0;
    padding: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
} */

.card-body {
    padding: 24px;
}

/* Modern Alerts */
.alert {
    border-radius: 8px;
    padding: 16px 20px;
    border: none;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fcc419 100%);
    color: #333;
}

.alert-info {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
}

/* Modern Input Groups */
.input-group {
    position: relative;
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e0e0e0;
    border-right: none;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    border-color: #4a90e2;
    background-color: #fff;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group:focus-within .form-control {
    border-left: 2px solid #4a90e2;
}

/* Modern Checkboxes and Radio Buttons */
/* .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-check-label {
    margin-left: 8px;
    cursor: pointer;
    user-select: none;
}

/* Modern Textareas */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
} */

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ============================================
   LOGIN PAGE STYLES (Dark Theme)
   ============================================ */

.hold-transition.login-page {
   
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hold-transition.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 0;
}

.hold-transition.login-page .login-box {
    position: relative;
    z-index: 1; /* Ensure login box is above background */
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* .login-box {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
} */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    padding: 30px 0;
}

.login-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* .login-card {
    padding: 40px;
    background: rgba(26, 54, 66, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
} */

/* Dark Theme Form Controls */
/* .hold-transition.login-page .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
} */

/* .hold-transition.login-page .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    color: white;
} */

/* .hold-transition.login-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hold-transition.login-page .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: white;
}

.hold-transition.login-page .input-group:focus-within .input-group-text {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.hold-transition.login-page .btn {
    background: white;
    color: #1a3642;
    font-weight: 700;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
} */

.hold-transition.login-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Login Page Input Groups - Fixed Styling */
.hold-transition.login-page .input-group {
    width: 100%;
    display: flex;
    margin-bottom: 1rem;
}

.hold-transition.login-page .input-group .form-control {
    flex: 1;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 0;
    background: #1a3642;
    color: white;
}

.hold-transition.login-page .input-group .form-control:focus {
    border-top-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.5);
    border-left-color: rgba(255, 255, 255, 0.5);
    border-right: none;
    outline: none;
    box-shadow: none;
}

.hold-transition.login-page .input-group .input-group-text {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    border-radius: 0;
    background: #1a3642;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hold-transition.login-page .input-group:focus-within .input-group-text {
    border-top-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.5);
    border-right-color: rgba(255, 255, 255, 0.5);
}

.hold-transition.login-page .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Link styles */
a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ea8466;
    text-decoration: underline;
    transform: translateX(2px);
}

a:visited {
    color: white;
    background-color: transparent;
    text-decoration: none;
}

a:active {
    color: red;
    background-color: transparent;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Checkbox styling for login */
.icheck-primary input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.icheck-primary label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

/* Form Row Spacing */
.form-group.row {
    margin-bottom: 20px;
}

/* Modern Select2 Styling */
/* .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px;
    min-height: 42px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
} */

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

