/* Frontend Styles for WP Quote Manager */

.wqm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login & Register Forms */
.wqm-auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wqm-auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.wqm-form-group {
    margin-bottom: 20px;
}

.wqm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.wqm-form-group input[type="text"],
.wqm-form-group input[type="email"],
.wqm-form-group input[type="password"],
.wqm-form-group input[type="tel"],
.wqm-form-group textarea,
.wqm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.wqm-form-group input:focus,
.wqm-form-group textarea:focus,
.wqm-form-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.wqm-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.wqm-btn:hover {
    background: #005a87;
}

.wqm-btn-success {
    background: #4CAF50;
}

.wqm-btn-success:hover {
    background: #45a049;
}

.wqm-btn-danger {
    background: #f44336;
}

.wqm-btn-danger:hover {
    background: #da190b;
}

.wqm-btn-warning {
    background: #ff9800;
}

.wqm-btn-warning:hover {
    background: #e68900;
}

.wqm-btn-primary {
    background: #2196F3;
}

.wqm-btn-primary:hover {
    background: #0b7dda;
}

.wqm-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* Dashboard */
.wqm-dashboard {
    margin-top: 20px;
}

.wqm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wqm-dashboard-header h1 {
    margin: 0;
    color: #333;
}

.wqm-dashboard-header .wqm-user-info {
    color: #666;
}

/* Stats Cards */
.wqm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wqm-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.wqm-stat-card:hover {
    transform: translateY(-5px);
}

.wqm-stat-card .wqm-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
}

.wqm-stat-card .wqm-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Quote List */
.wqm-quote-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wqm-quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.wqm-quote-item:hover {
    background: #f9f9f9;
}

.wqm-quote-item:last-child {
    border-bottom: none;
}

.wqm-quote-info {
    flex: 1;
}

.wqm-quote-info .wqm-quote-code {
    font-weight: bold;
    color: #333;
}

.wqm-quote-info .wqm-quote-title {
    color: #666;
    margin-left: 10px;
}

.wqm-quote-info .wqm-quote-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.wqm-quote-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 15px;
}

.wqm-quote-actions {
    display: flex;
    gap: 10px;
}

.wqm-quote-actions .wqm-btn {
    font-size: 12px;
}

/* Status Badges */
.status-pending { background: #FFC107; color: #333; }
.status-processing { background: #2196F3; color: #fff; }
.status-sent { background: #4CAF50; color: #fff; }
.status-viewed { background: #9C27B0; color: #fff; }
.status-negotiating { background: #FF9800; color: #333; }
.status-confirmed { background: #4CAF50; color: #fff; }
.status-rejected { background: #f44336; color: #fff; }
.status-expired { background: #9E9E9E; color: #fff; }

/* Quote Detail */
.wqm-quote-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wqm-quote-detail .wqm-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wqm-quote-detail .wqm-detail-label {
    width: 150px;
    font-weight: 600;
    color: #555;
}

.wqm-quote-detail .wqm-detail-value {
    flex: 1;
    color: #333;
}

.wqm-quote-detail .wqm-detail-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

/* Messages */
.wqm-message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wqm-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wqm-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wqm-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.wqm-request-form .wqm-form-group select{
    padding: 5px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .wqm-quote-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wqm-quote-status {
        margin: 10px 0;
        align-self: flex-start;
    }
    
    .wqm-quote-actions {
        margin-top: 10px;
    }
    
    .wqm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wqm-quote-detail .wqm-detail-row {
        flex-direction: column;
    }
    
    .wqm-quote-detail .wqm-detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .wqm-stats-grid {
        grid-template-columns: 1fr;
    }
}