/**
 * Main CSS
 * Core styles for Crackin Events Customer Portal
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* General Container Styles */
.crackin-dashboard,
.crackin-booking,
.crackin-payments,
.crackin-customer-details,
.crackin-task-list,
.crackin-hire-agreements,
.crackin-invoices {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Headers */
.dashboard-header,
.booking-header,
.payments-header,
.customer-header,
.task-list-header,
.agreements-header,
.invoices-header {
    margin-bottom: 30px;
}

.dashboard-header h1,
.booking-header h1,
.payments-header h1,
.customer-header h1,
.task-list-header h1,
.agreements-header h1,
.invoices-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.dashboard-subtitle,
.booking-subtitle,
.payments-subtitle,
.customer-subtitle,
.task-list-subtitle,
.agreements-subtitle,
.invoices-subtitle {
    font-size: 16px;
    color: #666;
}

/* Error and Success Messages */
.crackin-error {
    background: #fee;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.crackin-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.btn-large {
    padding: 14px 32px;
    font-size: 18px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Priority Colors */
.priority-high {
    border-left: 4px solid #dc3545;
}

.priority-medium {
    border-left: 4px solid #ffc107;
}

.priority-low {
    border-left: 4px solid #28a745;
}

/* Status Badges */
.status-completed {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #ffc107;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-expired,
.status-declined,
.status-overdue {
    background: #dc3545;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Product Initials */
.product-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .crackin-dashboard,
    .crackin-booking,
    .crackin-payments,
    .crackin-customer-details,
    .crackin-task-list,
    .crackin-hire-agreements,
    .crackin-invoices {
        padding: 10px;
    }
}

/* Modal Styles */
.task-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: #333;
}

/* Form Styles */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-field textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Login Styles */
.crackin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

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

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-error {
    background: #fee;
    border-left: 4px solid #dc3545;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #721c24;
}

.welcome-back {
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #007bff;
    margin-bottom: 10px;
}

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

.form-footer a {
    color: #007bff;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}
