/* ====================================================
   Özkartay Servis Takip - ArchitectUI Custom Overrides
   ==================================================== */

/* Logo in sidebar/header */
.logo-src-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: #1e3a5f;
}

.logo-src-link img {
    height: 26px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #c0392b;
    letter-spacing: 1px;
}

.app-header__logo .logo-src {
    display: none;
}

/* Avatar circle */
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Sidebar branding */
.app-sidebar .app-header__logo {
    background: #fff;
}

/* Sidebar active state */
.vertical-nav-menu li a.mm-active,
.vertical-nav-menu li.mm-active > a {
    color: #c0392b !important;
    font-weight: 600;
}

.vertical-nav-menu li a.mm-active::before,
.vertical-nav-menu li.mm-active > a::before {
    background: #c0392b !important;
}

/* MetisMenu badge */
.metismenu-badge {
    float: right;
    margin-top: 2px;
}

/* Header dots */
.dot-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s;
}

.dot-btn-wrapper:hover {
    background: rgba(0,0,0,0.05);
}

.header-icon {
    font-size: 1.2rem;
    color: #495057;
}

/* Page Title Component */
.page-title-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    margin-right: 16px;
}

/* Stat Widget Cards */
.widget-chart-wrapper canvas {
    max-height: 80px;
}

/* Card enhancements */
.main-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

/* Badge styles */
.badge-outline-primary {
    border: 1px solid #c0392b;
    color: #c0392b;
    background: transparent;
}

.badge-outline-success {
    border: 1px solid #059669;
    color: #059669;
    background: transparent;
}

/* Table custom styles */
.table-custom thead th {
    background: #f8f9fa;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 16px;
}

.table-custom tbody td {
    vertical-align: middle;
    padding: 12px 16px;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fa;
}

/* Stat icon boxes */
.stat-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-box.bg-primary-light { background: #fef2f2; color: #c0392b; }
.stat-icon-box.bg-success-light { background: #d1fae5; color: #059669; }
.stat-icon-box.bg-info-light { background: #e0f2fe; color: #0284c7; }
.stat-icon-box.bg-warning-light { background: #fef3c7; color: #d97706; }
.stat-icon-box.bg-danger-light { background: #fee2e2; color: #dc2626; }
.stat-icon-box.bg-cyan-light { background: #cffafe; color: #0891b2; }

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
    text-decoration: none;
}

.quick-action-btn i {
    font-size: 1.2rem;
}

/* Company rank medals */
.rank-medal {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-medal.gold { background: linear-gradient(135deg, #ffd700, #ffb700); color: #7c5700; }
.rank-medal.silver { background: linear-gradient(135deg, #c0c0c0, #a8a8a8); color: #555; }
.rank-medal.bronze { background: linear-gradient(135deg, #cd7f32, #b5692a); color: #fff; }
.rank-medal.default { background: #e5e7eb; color: #6b7280; }

/* Login Page */
.login-page-wrapper {
    min-height: 100vh;
}

.login-slider-panel {
    background: linear-gradient(135deg, #c0392b 0%, #8e1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
}

.login-slider-panel h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.login-slider-panel p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.login-loader-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.login-loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.login-loader-dots span.active {
    background: white;
}

.app-login-box h4 {
    color: #1f2937;
    font-weight: 700;
}

.app-login-box .divider {
    height: 1px;
    background: #e5e7eb;
    margin: 24px 0;
}

/* Filter cards */
.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Activity timeline */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Form page styles */
.form-section-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.form-section-card .card-header {
    background: #f8f9fa;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

/* Signature pad */
.signature-pad-wrapper {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #fff;
    position: relative;
}

.signature-pad-wrapper canvas {
    width: 100%;
    height: 200px;
}

.signature-pad-wrapper .clear-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Status badges */
.badge-overdue {
    background: #dc2626;
    color: white;
}

.badge-upcoming {
    background: #f59e0b;
    color: #1f2937;
}

/* Btn branded */
.btn-branded {
    background: #c0392b;
    border-color: #c0392b;
    color: white;
}

.btn-branded:hover {
    background: #a93226;
    border-color: #a93226;
    color: white;
}

/* Icon gradient overrides for branded color */
.icon-gradient.bg-ozkartay {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .app-main__inner {
        padding: 15px;
    }
    
    .page-title-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Print styles */
@media print {
    .app-header, .app-sidebar, .app-wrapper-footer, .no-print { display: none !important; }
    .app-main__outer { margin-left: 0 !important; padding: 0 !important; }
    .app-main__inner { padding: 0 !important; }
}

/* Notification Dropdown Styles */
.dropdown-menu-xl {
    min-width: 360px;
}

.dropdown-menu-header {
    margin: -0.5rem -0.5rem 0;
    border-radius: 0.25rem 0.25rem 0 0;
    overflow: hidden;
}

.dropdown-menu-header-inner {
    padding: 1.25rem;
    position: relative;
}

.dropdown-menu-header-inner .menu-header-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.dropdown-menu-header-inner .menu-header-content {
    position: relative;
    z-index: 1;
}

.dropdown-menu-header-inner .menu-header-title {
    color: #fff;
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.dropdown-menu-header-inner .menu-header-subtitle {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    font-size: 0.85rem;
    margin: 0;
}

.scroll-area-sm {
    height: 280px;
    overflow-y: auto;
}

.scroll-area-md {
    max-height: 350px;
    overflow-y: auto;
}

.scroll-area-sm::-webkit-scrollbar,
.scroll-area-md::-webkit-scrollbar {
    width: 5px;
}

.scroll-area-sm::-webkit-scrollbar-track,
.scroll-area-md::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scroll-area-sm::-webkit-scrollbar-thumb,
.scroll-area-md::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.scroll-area-sm::-webkit-scrollbar-thumb:hover,
.scroll-area-md::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.header-dots .dropdown .icon-wrapper {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.header-dots .dropdown .icon-wrapper:hover {
    background: rgba(63, 106, 216, 0.1);
}

.header-dots .dropdown .icon-wrapper-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.header-dots .dropdown:hover .icon-wrapper-bg {
    opacity: 0.1;
}

.header-dots .badge-dot-sm {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    font-size: 0;
}

.notification-list .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

.notification-list .list-group-item:first-child {
    border-top: none;
}

@media (max-width: 576px) {
    .dropdown-menu-xl {
        min-width: 100vw;
        margin: 0;
        border-radius: 0;
    }
    
    .scroll-area-sm {
        height: 50vh;
    }
}

/* Notification Tabs */
.dropdown-menu-xl .nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.dropdown-menu-xl .nav-tabs .nav-link {
    font-size: 0.8rem;
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.dropdown-menu-xl .nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #3f6ad8;
}

.dropdown-menu-xl .nav-tabs .nav-link.active {
    color: #3f6ad8;
    border-bottom-color: #3f6ad8;
    background: transparent;
}

.dropdown-menu-xl .tab-content {
    min-height: 280px;
}
