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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Styles */
.section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.section h2 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 i {
    color: #667eea;
}

/* Map Container - Removed */

/* Location Info */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-info p {
    font-weight: 500;
    color: #4a5568;
    margin: 0;
}

.location-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.manual-location-input {
    margin-top: 10px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.manual-location-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
}

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

.manual-location-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

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

.form-group input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* Time Input Group */
.time-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-input-group input {
    flex: 1;
}

.time-input-group button {
    white-space: nowrap;
    padding: 12px 15px;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* History Actions */
.history-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover {
    background: #f8fafc;
}

/* Action buttons in table */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #17a2b8;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

/* Android Help Message */
.android-help-message {
    max-width: 350px;
    background: #e3f2fd !important;
    border-left: 4px solid #2196f3 !important;
    color: #0d47a1 !important;
}

.android-help h4 {
    margin-bottom: 10px;
    color: #1565c0;
    font-size: 1rem;
}

.android-help ol {
    margin: 10px 0;
    padding-left: 20px;
}

.android-help li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.android-help button {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .location-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions,
    .history-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .time-input-group {
        flex-direction: column;
    }
    
    .time-input-group button {
        width: 100%;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .donation-message {
        padding: 15px;
        margin-top: 15px;
    }
    
    .donation-content-inline {
        gap: 10px;
    }
    
    .donation-content-inline i {
        font-size: 1.2rem;
    }
    
    .donation-content-inline p {
        font-size: 1rem;
    }
    
    .donation-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .donation-text h3 {
        font-size: 1.5rem;
    }
    
    .donation-text p {
        font-size: 1rem;
    }
    
    .donation-number {
        padding: 12px 20px;
    }
    
    .donation-number span {
        font-size: 1.1rem;
    }
    
    .donation-platforms {
        gap: 10px;
    }
    
    .platform-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Currency Symbol Styling */
.currency-symbol {
    color: #28a745;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #495057;
}

/* Focus States for Accessibility */
.btn:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Donation Message (Inline) */
.donation-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.donation-content-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.donation-content-inline i {
    font-size: 1.5rem;
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

.donation-content-inline p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.donation-content-inline strong {
    color: #4ade80;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Donation Section */
.donation-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
}

.donation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.donation-icon {
    font-size: 3rem;
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.donation-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.donation-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.donation-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-number i {
    font-size: 1.2rem;
    color: #4ade80;
}

.donation-number span {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.donation-platforms {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-badge.gcash {
    background: #0066cc;
    color: white;
}

.platform-badge.grabpay {
    background: #00b14f;
    color: white;
}

/* Print Styles */
@media print {
    .btn,
    .form-actions,
    .history-actions,
    .donation-section {
        display: none;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
    }
} 