/* ==========================================================================
   뷰(View) 공통 레이아웃 및 타이포그래피 정규화
   ========================================================================== */

/* 1. Header Bar (공통) */
.view-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

h1.view-title, .view-title {
    font-size: 20px !important;
    font-weight: 300; /* Sophisticated Light Style */
    color: #1A1A1A;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* 2. Premium Centered Search Bar (Pill Design) */
.search-controls-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 40px 0;
}

.premium-search-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 99px;
    padding: 8px 12px 8px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #F1F5F9;
    width: 100%;
    max-width: 600px;
    gap: 16px;
    transition: all 0.3s ease;
}

.premium-search-bar:focus-within {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #E2E8F0;
}

.search-icon-pill {
    color: #8B5CF6; /* Purple accent like the image icon */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.view-search-input-pill {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #1E293B;
    outline: none;
    padding: 8px 0;
}

.view-search-input-pill::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.btn-reset-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-reset-pill:hover {
    background: #F1F5F9;
    color: #1E293B;
    transform: rotate(90deg);
}

.search-action-btn {
    padding: 8px 16px;
    background: #F1F5F9;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.search-action-btn:hover {
    background: #E2E8F0;
}

/* 3. Filter Bar & Selectors */
.filter-bar {
    display: flex;
    justify-content: center;
    padding: 0 0 32px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.stats-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
}

/* 4. Data Table Card Container */
.data-card-wrapper {
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 40px; /* Space for pagination */
}

.data-table-layout {
    width: 100%;
    border-collapse: collapse;
}

.data-table-layout thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 5. Empty State / Coming Soon View */
.empty-state-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #F8FAFC;
    text-align: center;
    padding: 40px 16px; /* Optimized Side Padding for Empty Views */
}

.empty-state-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.12);
}

.empty-state-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.empty-state-subtitle {
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
    margin: 0;
}

/* 6. Mobile Data Table Optimization (2-Line Block Layout) */
@media (max-width: 1024px) {
    .data-card-wrapper {
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .data-table-layout {
        display: block;
    }

    .data-table-layout thead {
        display: none;
    }

    .data-table-layout tbody, 
    .data-table-layout tr {
        width: 100%;
    }

    .data-table-layout tr {
        background: white;
        margin-bottom: 12px;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: var(--standard-padding);
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        display: flex;
        flex-wrap: wrap;
        align-items: center; /* Center pill and stay name vertically */
        box-sizing: border-box;
    }

    .data-table-layout td {
        display: block;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Row 1: No, Type, Name, Status */
    /* No. */
    .data-table-layout td:nth-child(1) {
        order: 1;
        width: auto !important;
        margin-right: 8px;
        color: #cbd5e1 !important;
        font-weight: 600;
    }
    
    /* Type Badge */
    .data-table-layout td:nth-child(2) {
        order: 2;
        width: auto !important;
        margin-right: 12px;
    }

    /* Name */
    .data-table-layout td:nth-child(3) {
        order: 3;
        flex: 1;
        min-width: 0;
        margin-bottom: 0; /* Removed margin to fix vertical alignment */
    }
    
    /* Status Dot */
    .data-table-layout td:nth-child(6) {
        order: 4;
        width: auto !important;
        margin-left: 12px;
        margin-bottom: 0;
    }

    /* Divider */
    .data-table-layout tr::after {
        content: "";
        width: 100%;
        height: 1px;
        background: #f1f5f9;
        order: 5;
        margin: 16px 0 12px 0; /* Increased top margin for spacing */
    }

    /* Row 2: Address */
    .data-table-layout td:nth-child(4) {
        order: 6;
        width: 100% !important;
        margin-bottom: 6px;
    }

    /* Row 3: License Date */
    .data-table-layout td:nth-child(5) {
        order: 7;
        width: 100% !important;
        font-size: 11px !important;
        color: #94a3b8 !important;
    }
}
