/**
 * K4LI Web-Based System - Main Stylesheet
 * 
 * Modern dark theme with macOS-inspired design
 */

:root {
    /* Colors */
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --tertiary-bg: #3a3a3a;
    --accent-color: #007AFF;
    --accent-hover: #0051D5;
    --success-color: #4CD964;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.5);
    
    /* Sizing */
    --header-height: 60px;
    --sidebar-width: 200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page Styles */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 122, 255, 0.5));
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #007AFF, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.status-icon {
    width: 20px;
    height: 20px;
}

.login-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 8px 32px var(--shadow);
    backdrop-filter: blur(10px);
}

.login-icon {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 20px;
}

.login-card h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: var(--tertiary-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.progress-container {
    text-align: center;
    margin: 30px 0;
}

.circular-progress {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-bg {
    fill: none;
    stroke: var(--tertiary-bg);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transform-origin: center;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0.3s;
}

.progress-text {
    font-size: 24px;
    font-weight: 600;
    fill: var(--text-primary);
}

#progressStatus {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-link:hover {
    background: var(--tertiary-bg);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.login-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.control-btn:hover {
    background: var(--tertiary-bg);
    transform: scale(1.05);
}

.control-btn img {
    width: 20px;
    height: 20px;
}

/* Dashboard Styles */
.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.header {
    height: var(--header-height);
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 40px;
    height: 40px;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.header-right {
    display: flex;
    gap: 10px;
}

/* macOS-Style Dock Bar */
.dock-bar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(45, 45, 45, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dock-item {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    border-radius: 10px;
}

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dock-item:hover {
    width: 65px;
    height: 65px;
    transform: translateY(-10px);
}

.dock-item.active {
    background: rgba(0, 122, 255, 0.2);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
}

.dock-tooltip {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.2s;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dock-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.95);
}

.dock-item:hover .dock-tooltip {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.content-area {
    margin-top: var(--header-height);
    margin-bottom: 90px;
    height: calc(100vh - var(--header-height) - 90px);
    overflow-y: auto;
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.home-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    pointer-events: none;
}

.home-logo {
    width: 400px;
    height: 400px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header img {
    width: 32px;
    height: 32px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-body p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.card-body span {
    color: var(--text-primary);
    font-weight: 500;
}

.speed-info {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.speed-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.speed-item img {
    width: 40px;
    height: 40px;
}

.speed-item h4 {
    font-size: 20px;
    color: var(--accent-color);
}

.device-stats {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
}

.stat-item h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

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

.page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
}

.page-header img {
    width: 36px;
    height: 36px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--tertiary-bg);
    border-radius: 20px;
    font-size: 14px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-indicator.offline {
    background: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
}

.devices-container {
    position: relative;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state img {
    width: 120px;
    height: 120px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.device-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
}

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--accent-color);
}

.device-card.apk {
    border-color: rgba(0, 122, 255, 0.3);
}

.device-card.url-hack {
    border-color: rgba(255, 149, 0, 0.3);
}

.device-wallpaper {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.device-info {
    padding: 15px;
}

.device-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.device-details {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.device-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.device-badge.apk {
    background: rgba(0, 122, 255, 0.2);
    color: var(--accent-color);
}

.device-badge.url-hack {
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning-color);
}

.device-status {
    padding: 10px 15px;
    background: var(--tertiary-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--success-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot-inline {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Enhanced Control Center (macOS-style) */
.control-center {
    position: fixed;
    right: 20px;
    top: calc(var(--header-height) + 20px);
    width: 330px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow);
    padding: 20px;
    z-index: 1000;
    animation: slideIn 0.3s;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

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

.control-center h3 {
    font-size: 16px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
}

/* Quick Settings Grid */
.quick-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.settings-card {
    background: rgba(45, 45, 50, 0.9);
    border-radius: 12px;
    padding: 10px;
}

.settings-card.single {
    grid-column: span 1;
}

.settings-card.small {
    grid-column: span 1;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.setting-item-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.setting-icon {
    width: 20px;
    height: 20px;
}

.setting-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.setting-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-name-small {
    font-size: 9px;
    color: var(--text-secondary);
}

.setting-status {
    font-size: 9px;
    color: var(--text-secondary);
}

/* Control Sliders */
.control-slider {
    background: rgba(45, 45, 50, 0.9);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.slider-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.slider-header img {
    width: 16px;
    height: 16px;
}

.slider-header span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.custom-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 8px;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Now Playing (Music Player) */
.now-playing {
    background: rgba(45, 45, 50, 0.9);
    border-radius: 12px;
    padding: 12px;
}

.np-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.album-art-small {
    flex-shrink: 0;
}

.album-art-small img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.track-info-small {
    flex: 1;
    min-width: 0;
}

.track-info-small h4 {
    font-size: 13px;
    margin: 0 0 3px 0;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info-small p {
    font-size: 11px;
    margin: 0;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls-small {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.player-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.player-btn img {
    width: 16px;
    height: 16px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 10000;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar-width: 80px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .content-area {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Additional Components */
.btn-secondary {
    padding: 10px 20px;
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #CC2F26;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table thead {
    background: var(--tertiary-bg);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

table td {
    font-size: 14px;
}

table tr:hover {
    background: var(--tertiary-bg);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--tertiary-bg);
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Scrollbar Styling */
/* ==================== PHISHING PAGE LAYOUTS ==================== */
.phishing-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 10px;
    height: calc(100vh - 100px);
    padding: 0;
}

.phishing-left-panel {
    background: rgba(50, 51, 69, 0.6);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phishing-right-panel {
    background: rgba(50, 51, 69, 0.6);
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
    text-align: center;
    margin-bottom: 20px;
}

.panel-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.panel-header h2 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
}

.server-status-box {
    background: #1A1A2E;
    border: 1px solid #3ca746;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.status-label {
    color: #FFA500;
    font-size: 10px;
    margin-bottom: 5px;
}

.status-value {
    color: #FF6B6B;
    font-weight: bold;
    font-size: 12px;
}

.status-value.online {
    color: #4CD964;
}

.status-address {
    color: #4CD964;
    font-size: 10px;
    margin-top: 5px;
}

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

.form-group label {
    color: white;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
}

.platform-selector {
    width: 160px;
    height: 28px;
    background: #1A1A2E;
    color: white;
    border: 1px solid #3ca746;
    border-radius: 4px;
    padding: 5px;
    font-size: 11px;
}

.generated-url-box {
    width: 200px;
    height: 60px;
    background: #1A1A2E;
    color: white;
    border: 1px solid #3ca746;
    border-radius: 4px;
    padding: 8px;
    font-size: 11px;
    resize: none;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-success {
    background: #3ca746;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
}

.btn-success:hover {
    background: #45b752;
}

.btn-warning {
    background: #FFA500;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
}

.btn-warning:hover {
    background: #FFB833;
}

.info-text {
    color: #888;
    font-size: 10px;
    font-style: italic;
    text-align: center;
}

.credentials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.credential-card {
    width: 200px;
    height: 250px;
    background: rgba(50, 51, 69, 0.8);
    border: 1px solid #FF4500;
    border-radius: 10px;
    overflow: hidden;
}

.credential-card-header {
    background: #1A1A2E;
    padding: 10px;
    text-align: center;
}

.credential-card-header img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

.credential-platform {
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.credential-card-body {
    padding: 10px;
}

.credential-field {
    margin-bottom: 8px;
}

.credential-label {
    color: #FFA500;
    font-size: 10px;
    font-weight: bold;
}

.credential-value {
    color: white;
    font-size: 11px;
    word-wrap: break-word;
}

.credential-timestamp {
    color: gray;
    font-size: 8px;
    text-align: right;
    margin-top: 5px;
}

.empty-state-phish {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 50px 20px;
    grid-column: 1 / -1;
}

/* ==================== URL HACK PAGE LAYOUTS ==================== */
.urlhack-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: calc(100vh - 100px);
    padding: 15px;
}

.urlhack-left-panel {
    background: rgba(50, 51, 69, 0.6);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.urlhack-right-panel {
    background: rgba(50, 51, 69, 0.6);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header-small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.panel-icon-small {
    width: 24px;
    height: 24px;
}

.panel-header-small h3 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
}

.instruction-text {
    color: #CCCCCC;
    font-size: 12px;
    margin-bottom: 10px;
}

.server-status-compact {
    background: #1A1A2E;
    border: 1px solid #FFA500;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF3B30;
}

.status-dot.online {
    background: #4CD964;
}

.status-info {
    color: white;
    font-size: 10px;
}

.status-hint {
    color: #999;
    font-size: 9px;
}

.url-input {
    width: 100%;
    background: white;
    border: 1px solid #16213E;
    border-radius: 4px;
    padding: 8px;
    font-size: 11px;
    color: #333;
}

.generated-url-display {
    width: 100%;
    background: #2A2A2A;
    border: 1px solid #3ca746;
    border-radius: 4px;
    padding: 8px;
    font-size: 10px;
    color: #3ca746;
    resize: none;
}

.button-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.full-width {
    width: 100%;
}

.quick-guide {
    background: #1A1A2E;
    border: 1px solid #3ca746;
    border-radius: 4px;
    padding: 10px;
}

.guide-title {
    color: #3ca746;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
}

.guide-steps {
    color: #CCCCCC;
    font-size: 9px;
    line-height: 1.6;
}

.activity-log-header {
    color: #3ca746;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Oswald', sans-serif;
}

.activity-log-content {
    background: #1A1A2E;
    border: 1px solid #3ca746;
    border-radius: 4px;
    padding: 8px;
    height: calc(100% - 30px);
    overflow-y: auto;
    color: #00FF00;
    font-family: 'Consolas', monospace;
    font-size: 8px;
    line-height: 1.4;
}

/* ==================== LOCATION PAGE LAYOUTS ==================== */
.location-page-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px);
    padding: 0;
}

.location-header-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.location-logo {
    width: 80px;
    height: 80px;
}

.location-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 20px;
}

.title-icon {
    width: 30px;
    height: 30px;
}

.location-title-box h2 {
    color: white;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
}

.location-search-bars {
    display: flex;
    gap: 60px;
    justify-content: center;
    padding: 0 30px 20px;
}

.search-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-search-input {
    width: 350px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border: 5px solid white;
    border-radius: 10px;
    padding: 10px;
    font-size: 17px;
    font-family: 'Oswald', sans-serif;
    color: #333;
}

.location-search-input::placeholder {
    color: gray;
}

.search-btn {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-btn img {
    width: 100%;
    height: 100%;
}

.location-map-container {
    flex: 1;
    padding: 0 30px 20px;
}

.location-map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* ==================== APPLE-STYLE DEVICE DETAILS MODAL ==================== */
.apple-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.apple-device-window {
    background: linear-gradient(145deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUpBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.apple-device-window.maximized {
    width: 95%;
    max-width: 1400px;
    max-height: 95vh;
    transition: all 0.3s ease;
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes minimizeWindow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.1) translateY(500px);
        opacity: 0;
    }
}

/* Apple-style Window Controls */
.apple-window-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.apple-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.apple-btn:hover {
    transform: scale(1.1);
}

.apple-btn-close {
    background: #ff5f57;
    box-shadow: 0 0 8px rgba(255, 95, 87, 0.5);
}

.apple-btn-close:hover {
    background: #ff3b30;
}

.apple-btn-minimize {
    background: #febc2e;
    box-shadow: 0 0 8px rgba(254, 188, 46, 0.5);
}

.apple-btn-minimize:hover {
    background: #ff9500;
}

.apple-btn-maximize {
    background: #28c840;
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.5);
}

.apple-btn-maximize:hover {
    background: #4cd964;
}

/* Window Title */
.apple-window-title {
    background: rgba(45, 45, 45, 0.95);
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.title-icon-apple {
    width: 24px;
    height: 24px;
}

/* Window Content */
.apple-window-content {
    padding: 30px;
    max-height: calc(85vh - 60px);
    overflow-y: auto;
}

/* Device Header Section */
.device-header-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(58, 58, 58, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.device-wallpaper-large {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.device-header-info h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.device-connection-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Device Info Grid */
.device-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(58, 58, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(58, 58, 58, 0.6);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.status-badge-green {
    color: var(--success-color);
    font-weight: 700;
}

/* Device Actions Grid */
.device-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.apple-action-btn {
    background: rgba(58, 58, 58, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.apple-action-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.apple-action-btn img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.apple-action-danger:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: var(--danger-color);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.3);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .apple-device-window {
        width: 95%;
        max-height: 90vh;
    }
    
    .device-header-section {
        flex-direction: column;
        text-align: center;
    }
    
    .device-info-grid {
        grid-template-columns: 1fr;
    }
    
    .device-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .apple-window-content {
        padding: 20px;
    }
}

