@import url('https://fonts.googleapis.com/css2?family=Ruda:wght@400;500;600;700;800;900&display=swap');

:root {
    --krt-dark: #565757;
    --krt-primary: #fe4e00;
    --krt-light: #f8f9fa;
    --krt-white: #ffffff;
}

body {
    font-family: 'Ruda', sans-serif;
    color: var(--krt-dark);
    background-color: var(--krt-light);
}

.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-choice-page {
    background: var(--krt-light);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.map-choice-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
    background: #fff;
}

.btn-map {
    padding: 15px;
    font-weight: bold;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.btn-map:active {
    transform: scale(0.98);
}

.btn-apple {
    background: #000;
    color: #fff;
    border: none;
}

.btn-google {
    background: #4285F4;
    color: #fff;
    border: none;
}

.btn-apple:hover {
    background: #333;
    color: #fff;
}

.btn-google:hover {
    background: #357ae8;
    color: #fff;
}

.bg-krt-dark {
    background-color: var(--krt-dark) !important;
}

.sidebar {
    min-height: 100vh;
    background-color: var(--krt-dark) !important;
    color: var(--krt-white);
    padding-top: 2rem;
}

/* Offcanvas responsiveness */
@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
    }
    
    .offcanvas-md.offcanvas-start {
        border-right: none;
        width: 280px;
    }
}

.navbar-toggler:focus {
    box-shadow: none;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: var(--krt-white);
    background-color: rgba(254, 78, 0, 0.1);
}

.sidebar .nav-link.active {
    color: var(--krt-white);
    background-color: var(--krt-primary);
    font-weight: 700;
}

.btn-primary {
    background-color: var(--krt-primary);
    border-color: var(--krt-primary);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    transition: all 0.2s;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #e04500 !important;
    border-color: #e04500 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 78, 0, 0.2);
}

.btn-outline-primary {
    color: var(--krt-primary);
    border-color: var(--krt-primary);
}

.btn-outline-primary:hover {
    background-color: var(--krt-primary);
    border-color: var(--krt-primary);
}

.badge.bg-primary {
    background-color: var(--krt-primary) !important;
}

.text-primary {
    color: var(--krt-primary) !important;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.75rem;
}

.login-card {
    max-width: 400px;
    width: 100%;
    margin: auto;
}

.footer {
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #999;
    font-size: 0.875rem;
}

/* Table column widths */
.col-code { width: 15%; }
.col-type { width: 10%; }
.col-clicks { width: 10%; }
.col-history { width: 10%; }
.col-created { width: 12%; }
.col-actions { width: 15%; }

.col-type-sm { width: 8%; }
.col-clicks-sm { width: 8%; }
.col-history-sm { width: 8%; }
.col-created-sm { width: 10%; }

.search-input { width: 240px; }

/* Badge styles */
.customer-badge { font-size: 0.7em; }
.badge-vcard, .badge-map, .badge-url { font-size: 0.75em; }

.logo-welcome { max-width: 250px; }
.logo-mobile { height: 25px; }
.logo-offcanvas { height: 30px; }

.logo-sidebar {
    max-width: 140px;
    margin-bottom: 2rem;
}

.logo-login {
    max-width: 200px;
    margin-bottom: 2rem;
}

/* Custom table styles */
.table-hover tbody tr:hover {
    background-color: rgba(254, 78, 0, 0.02);
}

.table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #888;
    border-top: none;
}
