/**
 * Custom Styles für RIP App V6
 * Bootstrap 5 Dark Mode ist bereits aktiviert via data-bs-theme="dark"
 * 
 * Weitere Styles:
 * - /assets/css/auth.css - Login & Signup spezifisch
 * - /assets/css/dashboard.css - Dashboard spezifisch
 */

/* ========== INTER FONT ========== */
@font-face {
    font-family: "Inter";
    src: url("../font/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "Inter";
    src: url("../font/InterVariable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: block;
}

/* ========== GLOBAL TYPOGRAPHY ========== */

/* System Font Stack */
:root {
    --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-weight: 400;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Override Bootstrap bg-dark */
.bg-dark {
    background-color: #101012 !important;
}

/* Überschriften */
h1, .h1 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 900;
    letter-spacing: -0.03em;
}

h2, h3, h4, h5, h6,
.h2, .h3, .h4, .h5, .h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
}

/* Normale Text-Elemente */
p, span, div, a, li, td, th, label {
    font-weight: 400;
}

/* Strong/Bold noch stärker */
strong, b {
    font-weight: 700; /* Bold */
}

/* ========== LAYOUT ========== */

/* Vollhöhe für zentrierte Layouts */
.min-vh-100 {
    min-height: 100vh;
}

/* Zentrierte Auth-Cards */
.auth-card {
    max-width: 450px;
    margin: 0 auto;
}

/* ========== TRANSITIONS & ANIMATIONS ========== */

/* Smooth Transitions */
.btn, .form-control, .card {
    transition: all 0.3s ease;
}

/* ========== FORMS ========== */

/* Input Background Color */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
    background-color: #252528;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Focus States - verbesserte Sichtbarkeit */
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background-color: #252528;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #ffffff;
}

/* ========== LINKS ========== */

/* Links in Dark Mode */
a {
    color: #6ea8fe;
    text-decoration: none;
}

a:hover {
    color: #8bb9fe;
    text-decoration: underline;
}

/* ========== BUTTONS ========== */

/* Modal Button Styling */
.modal-footer .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    min-width: 140px;
    border: none;
    transition: all 0.2s ease;
}

.modal-footer .btn-secondary {
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-footer .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.modal-footer .btn-primary {
    background-color: #e8e6e3;
    color: #000000;
    border: none;
}

.modal-footer .btn-primary:hover {
    background-color: #f5f4f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 230, 227, 0.3);
}

/* Custom Button Hover Effects (for non-modal buttons) */
.btn-primary:not(.modal-footer .btn-primary):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* ========== COMPONENTS ========== */

/* Alert Container */
#alert-container {
    position: relative;
    z-index: 1000;
}

/* Card Shadows */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}

/* Spinner in Buttons */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Modals */
.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #1c1c1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* ========== NAVIGATION ========== */

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== FOOTER ========== */

/* Footer Styles */
.footer {
    margin-top: auto;
    padding: 1rem 0;
    background-color: #101012;
}

/* ========== VALIDATION ========== */

/* Improved Form Validation Feedback */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
textarea,
select {
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: #ff3b30 !important;
    border-width: 2px !important;
    background-color: #252528 !important;
}

.is-invalid:focus,
input.is-invalid:focus,
textarea.is-invalid:focus,
select.is-invalid:focus {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 59, 48, 0.15) !important;
}

.invalid-feedback {
    display: none;
    color: #ff3b30;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-left: 0.25rem;
}

.is-invalid ~ .invalid-feedback,
input.is-invalid ~ .invalid-feedback,
textarea.is-invalid ~ .invalid-feedback,
select.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-valid {
    border-color: #198754 !important;
}

/* ========== STATES ========== */

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========== RESPONSIVE ========== */

/* Responsive Spacing */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
    }
    
    .card {
        border-radius: 0.5rem;
    }
}

/* ========== SCROLLBAR ========== */

/* Custom Scrollbar für Dark Mode */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}
