/**
 * Frontend CSS for Gravity Forms Account Manager
 */

/* Container and Layout */
.gf-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gf-account-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

.gf-account-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.gf-account-header h1 {
    color: #333;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 300;
}

/* Navigation */
.gf-account-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gf-account-nav a {
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gf-account-nav a:hover {
    background: #f8f9fa;
    color: #333;
}

.gf-account-nav a.active {
    background: #0073aa;
    color: #fff;
}

.gf-account-nav a.logout-link {
    background: #dc3545;
    color: #fff;
}

.gf-account-nav a.logout-link:hover {
    background: #c82333;
}

/* Forms */
.gf-account-login-form,
.gf-account-register-form {
    max-width: 400px;
    margin: 0 auto;
}

.gf-account-login-form h3,
.gf-account-register-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 300;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-row input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-row input.error {
    border-color: #dc3545;
}

/* Buttons */
.gf-account-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gf-account-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.gf-account-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gf-account-btn-secondary {
    background: #6c757d;
}

.gf-account-btn-secondary:hover {
    background: #545b62;
}

/* Messages */
.gf-account-message {
    margin-top: 15px;
}

.message {
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Links */
.gf-account-register-link,
.gf-account-login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.gf-account-register-link a,
.gf-account-login-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.gf-account-register-link a:hover,
.gf-account-login-link a:hover {
    text-decoration: underline;
}

/* Dashboard */
.gf-account-dashboard {
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-date {
    font-size: 1.2em;
    color: #666;
}

/* Entries */
.entries-list {
    margin-top: 20px;
}

.entry-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #0073aa;
}

.entry-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.entry-title strong {
    color: #333;
    font-size: 1.1em;
}

.entry-date {
    color: #666;
    font-size: 0.9em;
}

.entry-status {
    color: #0073aa;
    font-weight: 500;
    font-size: 0.9em;
}

/* Entries Table */
.gf-account-entries-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.gf-account-entries-table thead {
    background: #0073aa;
    color: #fff;
}

.gf-account-entries-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gf-account-entries-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.gf-account-entries-table tbody tr:hover {
    background-color: #f8f9fa;
}

.gf-account-entries-table tbody tr:last-child {
    border-bottom: none;
}

.gf-account-entries-table td {
    padding: 15px;
    color: #333;
    font-size: 0.95em;
    vertical-align: top;
}

.gf-account-entries-table .entry-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: capitalize;
}

.gf-account-entries-table .status-active {
    background: #d4edda;
    color: #155724;
}

.gf-account-entries-table .status-inactive,
.gf-account-entries-table .status-spam,
.gf-account-entries-table .status-trash {
    background: #f8d7da;
    color: #721c24;
}

.gf-account-entries-table .status-pending {
    background: #fff3cd;
    color: #856404;
}

.view-all-link {
    text-align: center;
    margin-top: 20px;
}

.view-all-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link a:hover {
    text-decoration: underline;
}

/* Entry Cards */
.entry-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.entry-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.entry-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}

.entry-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.entry-fields {
    display: grid;
    gap: 10px;
}

.entry-field {
    display: flex;
    gap: 10px;
}

.entry-field label {
    font-weight: 500;
    color: #555;
    min-width: 120px;
}

.field-value {
    color: #333;
}

/* Profile */
.profile-section {
    margin-bottom: 30px;
}

.profile-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 300;
}

.profile-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 500;
    color: #555;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal */
.gf-account-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

/* Quick Actions */
.quick-actions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.quick-actions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gf-account-container {
        padding: 10px;
    }
    
    .gf-account-content {
        padding: 20px;
    }
    
    .gf-account-header h1 {
        font-size: 2em;
    }
    
    .gf-account-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .entry-field {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .gf-account-entries-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gf-account-entries-table thead,
    .gf-account-entries-table tbody,
    .gf-account-entries-table tr,
    .gf-account-entries-table th,
    .gf-account-entries-table td {
        display: block;
    }
    
    .gf-account-entries-table thead {
        display: none;
    }
    
    .gf-account-entries-table tr {
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        padding: 10px;
        background: #fff;
    }
    
    .gf-account-entries-table td {
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: left !important;
    }
    
    .gf-account-entries-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #555;
        display: inline-block;
        min-width: 100px;
        margin-right: 10px;
    }
    
    .gf-account-entries-table td:last-child {
        border-bottom: none;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gf-account-header h1 {
        font-size: 1.8em;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .entry-card {
        padding: 15px;
    }
} 