/* WP Parking Manager Pro Styles */

/* Base Styles */
.wppm-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f5f5f7;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Login Screen */
.wppm-login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.wppm-login-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.wppm-login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wppm-login-header p {
    font-size: 16px;
    opacity: 0.9;
}

.wppm-login-form {
    width: 100%;
    max-width: 300px;
}

.wppm-pin-display {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
    margin-bottom: 30px;
    color: white;
    font-weight: 600;
}

.wppm-keypad {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.wppm-keypad-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wppm-key {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wppm-key:hover, .wppm-key:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.wppm-login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wppm-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* App Container */
.wppm-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f5f5f7;
}

/* Navigation Bar */
.wppm-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1d1d1f;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #444;
    z-index: 100;
}

.wppm-nav-btn {
    background: none;
    border: none;
    color: #888;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.wppm-nav-btn.active {
    color: #007aff;
    transform: scale(1.1);
}

/* Content Area */
.wppm-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for bottom nav */
    background-color: #f5f5f7;
}

.wppm-tab {
    display: none;
    height: 100%;
}

.wppm-tab.active {
    display: block;
}

.wppm-tab-header {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e7;
}

.wppm-tab-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Slots Grid */
.wppm-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.wppm-slot-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.wppm-slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wppm-slot-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wppm-slot-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
}

.wppm-slot-status.free {
    color: #34c759;
}

.wppm-slot-status.paid {
    color: #ff3b30;
}

.wppm-slot-status.subscription {
    color: #007aff;
}

.wppm-slot-type {
    font-size: 12px;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.wppm-slot-type.free {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.wppm-slot-type.paid {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.wppm-slot-type.subscription {
    background-color: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.wppm-slot-time {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Active List */
.wppm-active-list {
    padding: 20px;
}

.wppm-active-item {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wppm-active-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wppm-active-name {
    font-size: 18px;
    font-weight: 600;
}

.wppm-active-status {
    color: #ff3b30;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wppm-active-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
}

.wppm-active-price {
    font-weight: 600;
    color: #333;
}

/* Form Styles */
.wppm-form-container {
    padding: 20px;
}

.wppm-form-group {
    margin-bottom: 20px;
}

.wppm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.wppm-form-group input,
.wppm-form-group select,
.wppm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box;
}

.wppm-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.wppm-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.wppm-quick-filter {
    padding: 8px 15px;
    background-color: #f0f0f2;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wppm-quick-filter:hover {
    background-color: #e0e0e2;
}

/* Report Types */
.wppm-report-types {
    display: flex;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e7;
    gap: 10px;
    overflow-x: auto;
}

.wppm-report-type-btn {
    padding: 8px 15px;
    background-color: #f0f0f2;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wppm-report-type-btn.active {
    background-color: #007aff;
    color: white;
}

.wppm-report-type-btn:hover:not(.active) {
    background-color: #e0e0e2;
}

.wppm-report-form {
    display: none;
}

.wppm-report-form.active {
    display: block;
}

/* Button Styles */
.wppm-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wppm-btn-primary {
    background-color: #007aff;
    color: white;
}

.wppm-btn-primary:hover {
    background-color: #0066cc;
}

.wppm-btn-secondary {
    background-color: #f0f0f2;
    color: #333;
}

.wppm-btn-secondary:hover {
    background-color: #e0e0e2;
}

.wppm-btn-danger {
    background-color: #ff3b30;
    color: white;
}

.wppm-btn-danger:hover {
    background-color: #d63229;
}

/* Reports */
.wppm-reports-summary {
    padding: 20px;
    margin: 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wppm-summary-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.wppm-summary-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.wppm-summary-number {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.wppm-summary-label {
    font-size: 14px;
    color: #888;
}

.wppm-reports-table-container {
    overflow-x: auto;
    margin: 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wppm-reports-table {
    width: 100%;
    border-collapse: collapse;
}

.wppm-reports-table th,
.wppm-reports-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f2;
}

.wppm-reports-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.wppm-reports-table .slot-type-free {
    color: #34c759;
}

.wppm-reports-table .slot-type-paid {
    color: #ff3b30;
}

.wppm-reports-table .slot-type-subscription {
    color: #007aff;
}

.wppm-export-container {
    padding: 0 20px 20px;
    text-align: center;
}

/* Profile */
.wppm-profile-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wppm-profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.wppm-profile-avatar {
    margin-right: 20px;
    color: #007aff;
}

.wppm-profile-details h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.wppm-profile-details p {
    margin: 0;
    color: #888;
}

.wppm-profile-actions {
    margin-bottom: 30px;
}

.wppm-app-info {
    margin-top: auto;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Modal */
.wppm-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wppm-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.wppm-modal {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.wppm-modal.show {
    transform: scale(1);
    opacity: 1;
}

.wppm-modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wppm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wppm-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.wppm-modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Subscription Info */
.wppm-subscription-info {
    background-color: rgba(0, 122, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.wppm-subscription-info h4 {
    margin: 0 0 10px;
    color: #007aff;
    font-size: 16px;
}

.wppm-subscription-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wppm-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .wppm-summary-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .wppm-summary-stat {
        flex: none;
    }
    
    .wppm-report-types {
        padding: 10px 15px;
    }
    
    .wppm-reports-table th,
    .wppm-reports-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wppm-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .wppm-slot-card {
        padding: 15px;
    }
    
    .wppm-slot-name {
        font-size: 16px;
    }
    
    .wppm-active-item {
        padding: 15px;
    }
    
    .wppm-form-container {
        padding: 15px;
    }
    
    .wppm-reports-summary {
        padding: 15px;
        margin: 15px;
    }
    
    .wppm-reports-table-container {
        margin: 15px;
    }
    
    .wppm-export-container {
        padding: 0 15px 15px;
    }
}