/**
 * Public Styles
 * Offline Reward System
 */

/* Reset and Base */
.ors-public-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.ors-public-wrap * {
    box-sizing: border-box;
}

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

.ors-container-small {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Login & Registration Forms */
.ors-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.ors-auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

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

.ors-auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.ors-auth-header p {
    color: #666;
    margin: 0;
}

.ors-form-group {
    margin-bottom: 20px;
}

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

.ors-form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

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

.ors-form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.ors-checkbox-group {
    display: flex;
    align-items: center;
}

.ors-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.ors-checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.ors-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.ors-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.ors-auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ors-auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

.ors-alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.ors-alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.ors-alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

/* Dashboard */
.ors-dashboard {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 30px 0;
}

.ors-dashboard-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ors-dashboard-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a2e;
}

.ors-dashboard-subtitle {
    color: #666;
    margin: 0;
}

/* Points Cards */
.ors-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ors-points-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ors-points-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.ors-points-card.total::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.ors-points-card.locked::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.ors-points-card.unlocked::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.ors-points-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.ors-points-value {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.ors-points-description {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* Section */
.ors-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ors-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a2e;
}

/* Companies Grid */
.ors-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.ors-company-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.ors-company-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ors-company-logo {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.ors-company-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Sales Table */
.ors-table-wrapper {
    overflow-x: auto;
}

.ors-table {
    width: 100%;
    border-collapse: collapse;
}

.ors-table thead {
    background: #f8f9fa;
}

.ors-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 2px solid #eee;
}

.ors-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.ors-table tr:hover {
    background: #fafafa;
}

/* Badge */
.ors-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ors-badge-locked {
    background: #fff3cd;
    color: #856404;
}

.ors-badge-unlocked {
    background: #d1ecf1;
    color: #0c5460;
}

/* Empty State */
.ors-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ors-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.ors-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
}

.ors-empty-text {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .ors-auth-box {
        padding: 30px 20px;
    }
    
    .ors-dashboard-header {
        padding: 20px;
    }
    
    .ors-dashboard-title {
        font-size: 24px;
    }
    
    .ors-points-grid {
        grid-template-columns: 1fr;
    }
    
    .ors-points-value {
        font-size: 32px;
    }
    
    .ors-section {
        padding: 20px;
    }
    
    .ors-companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .ors-table {
        font-size: 14px;
    }
    
    .ors-table th,
    .ors-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .ors-container {
        padding: 15px;
    }
    
    .ors-dashboard {
        padding: 15px 0;
    }
    
    .ors-companies-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Loading */
.ors-loading {
    text-align: center;
    padding: 40px;
}

.ors-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ors-spin 1s linear infinite;
    margin: 0 auto;
}

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