* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-box h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #2d3748;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Buttons */
button, .btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Admin Container */
.admin-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: #718096;
    font-size: 14px;
    margin-top: 5px;
}

/* Header Buttons */
.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.change-password-btn, .logout-btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.change-password-btn {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.3);
}

.logout-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.change-password-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expiring-soon {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.stat-expired {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* Toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 14px;
    min-width: 250px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
    font-family: inherit;
}

.search-box button:hover {
    opacity: 0.9;
}

.filter-select, .per-page-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s;
}

.filter-select:focus, .per-page-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    padding: 8px 15px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-family: inherit;
}

.clear-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.result-count {
    font-size: 13px;
    color: #718096;
    white-space: nowrap;
}

.sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sort-link:hover {
    opacity: 0.8;
}

th a.sort-link {
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 25px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a.page-link {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.pagination a.page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.pagination span.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid transparent;
}

.pagination span.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    border: 1px solid #e2e8f0;
}

/* Add Button */
.add-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 12px 25px;
    text-decoration: none;
    color: #2d3748;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.4);
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 15px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

tr {
    transition: all 0.3s ease;
}

tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

/* Status Badges */
.status-active {
    color: #28a745;
    font-weight: bold;
    position: relative;
    padding-left: 20px;
}

.status-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-warning {
    color: #ffc107;
    font-weight: bold;
    position: relative;
    padding-left: 20px;
}

.status-warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ffc107;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-expired {
    color: #dc3545;
    font-weight: bold;
    position: relative;
    padding-left: 20px;
}

.status-expired::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Action Buttons */
.action-btn {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 3px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.edit-btn {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Container */
.form-container {
    max-width: 700px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h2 {
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit and Cancel Buttons */
.submit-btn, .cancel-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    text-align: center;
    display: inline-block;
}

.cancel-btn {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    text-decoration: none;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Messages */
.error, .success {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.5s ease-out;
}

.error {
    background: linear-gradient(135deg, #feb2b2 0%, #fc8181 100%);
    color: #742a2a;
    border-left: 4px solid #c53030;
}

.success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border-left: 4px solid #2f855a;
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Password Strength */
.password-strength {
    height: 6px;
    background: #e2e8f0;
    margin-top: 10px;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 3px;
}

.strength-weak { 
    background: linear-gradient(90deg, #fc8181, #f56565);
    width: 33%;
}

.strength-medium { 
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    width: 66%;
}

.strength-strong { 
    background: linear-gradient(90deg, #68d391, #48bb78);
    width: 100%;
}

.password-requirements {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #4a5568;
}

.password-requirements ul {
    margin-left: 20px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .change-password-btn, .logout-btn {
        width: 100%;
        justify-content: center;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-left, .toolbar-right {
        flex-wrap: wrap;
    }
    .toolbar-right {
        justify-content: flex-start;
    }
    .search-box input {
        min-width: 150px;
    }
    .action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .login-box, .form-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .login-box h2, .form-container h2 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* 4K Screens */
@media (min-width: 2560px) {
    .admin-container {
        max-width: 2000px;
        padding: 40px;
    }
    
    table {
        font-size: 18px;
    }
    
    th, td {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 42px;
    }
    
    .stat-number {
        font-size: 72px;
    }
    
    .stat-label {
        font-size: 20px;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .add-btn {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-container {
        max-width: 95%;
    }
    
    table {
        font-size: 13px;
    }
    
    th, td {
        padding: 12px 10px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-box, .header, .stat-card, .form-container, .table-wrapper {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .login-box h2, .header h1, .form-container h2 {
        background: linear-gradient(135deg, #a0aec0 0%, #cbd5e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .input-group label, .form-group label, .stat-label {
        color: #cbd5e0;
    }
    
    .input-group input, .form-group input, .form-group textarea {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    td {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   AUTO-PROVISIONING STYLES (Badges, Buttons, Modal)
   ========================================================= */

/* Provision Status Badges */
.badge-prov {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.badge-not-started {
    background: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.badge-in-progress {
    background: linear-gradient(135deg, #ebf4ff 0%, #c3ddfd 100%);
    color: #2b6cb0;
    border: 1px solid #90cdf4;
    animation: badgePulse 1.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(66, 153, 225, 0); }
}

.badge-completed {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border: 1px solid #68d391;
}

.badge-failed {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Deploy & Retry Action Buttons */
.deploy-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.retry-btn {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: white;
}

/* Interactive Deployment Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Step Tracker */
.step-tracker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.step-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.step-item .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item.active {
    background: #ebf8ff;
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
    transform: translateY(-2px);
}

.step-item.active .step-icon {
    background: #3182ce;
    color: white;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-item.completed {
    background: #f0fff4;
    border-color: #48bb78;
}

.step-item.completed .step-icon {
    background: #48bb78;
    color: white;
}

.step-item.failed {
    background: #fff5f5;
    border-color: #f56565;
}

.step-item.failed .step-icon {
    background: #f56565;
    color: white;
}

.step-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2px;
}

.step-info p {
    font-size: 11px;
    color: #718096;
    margin: 0;
}

/* Terminal Console Box */
.terminal-box {
    background: #1a202c;
    border-radius: 14px;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #a0aec0;
    height: 240px;
    overflow-y: auto;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid #2d3748;
}

.terminal-line {
    margin-bottom: 8px;
    line-height: 1.4;
    display: flex;
    gap: 10px;
}

.terminal-time {
    color: #718096;
    flex-shrink: 0;
}

.terminal-msg {
    color: #4fd1c5;
    word-break: break-all;
}

.terminal-msg.error-msg {
    color: #fc8181;
    font-weight: bold;
}

.terminal-msg.success-msg {
    color: #68d391;
    font-weight: bold;
}

/* Error Banner & Action Footer */
.modal-error-banner {
    display: none;
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 14px;
    padding: 16px 20px;
    color: #742a2a;
    font-size: 14px;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px 30px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer button {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
}