@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* layout.blade.php CSS */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-body: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 280px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-header .logo-box {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.sidebar-menu {
    padding: 20px;
    list-style: none;
}

.menu-item {
    margin-bottom: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s;
}

.menu-link:hover,
.menu-link.active {
    background: #f1f5ff;
    color: var(--primary-color);
    text-decoration: none;
}

.menu-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
}

/* Common Components */
.card-premium {
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.btn-premium {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    color: #fff;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Employee Forms Styles */
.registration-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 1;
    text-decoration: none !important;
    cursor: default;
}

.progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: -1;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    background: var(--primary-color);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #f0f0f0;
}

.progress-step.active .step-icon {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.progress-step.completed .step-icon {
    background: #2ecc71;
    color: #fff;
    box-shadow: 0 0 0 2px #2ecc71;
}

.step-label {
    font-weight: 700;
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.dynamic-row {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.dynamic-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.btn-remove-row,
.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ef4444;
    border: 1px solid #fee2e2;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s;
}

.btn-remove-row:hover,
.btn-remove:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

.uk-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    border: none;
    background: #fff;
}

.modal-header {
    border-bottom: 1px dashed var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.form-control {
    height: 50px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: none;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(166, 124, 105, 0.15);
}

.btn-submit,
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 10px;
    border: none;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover,
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
}