/* Professional Prop Trading Monitor - Dashboard Styles */

.ptm-trader-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.ptm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ptm-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

/* Buttons */
.ptm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ptm-btn-primary {
    background: #0066ff;
    color: white;
}

.ptm-btn-primary:hover {
    background: #0052cc;
}

.ptm-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.ptm-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.ptm-btn-block {
    width: 100%;
}

/* Empty State */
.ptm-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ptm-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.ptm-empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ptm-empty-state p {
    color: #666;
    margin-bottom: 30px;
}

/* Accounts Grid */
.ptm-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

/* Account Card */
.ptm-account-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ptm-account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ptm-account-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ptm-status-active {
    background: #d4edda;
    color: #155724;
}

.ptm-status-breached {
    background: #f8d7da;
    color: #721c24;
}

.ptm-status-pending {
    background: #fff3cd;
    color: #856404;
}

.ptm-account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-right: 100px;
}

.ptm-account-title h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.ptm-account-title p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.ptm-account-type {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: capitalize;
}

/* Balance Grid */
.ptm-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ptm-balance-item label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.ptm-balance-item strong {
    font-size: 18px;
    font-weight: 700;
}

.ptm-profit {
    color: #28a745;
}

.ptm-loss {
    color: #dc3545;
}

/* Risk Meters */
.ptm-risk-meter {
    margin-bottom: 16px;
}

.ptm-risk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ptm-risk-header label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ptm-risk-header span {
    font-size: 13px;
    font-weight: 700;
}

.ptm-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.ptm-progress-fill {
    height: 100%;
    transition: width 0.5s;
}

.ptm-progress-fill.ptm-success {
    background: #28a745;
}

.ptm-progress-fill.ptm-info {
    background: #17a2b8;
}

.ptm-progress-fill.ptm-warning {
    background: #ffc107;
}

.ptm-progress-fill.ptm-danger {
    background: #dc3545;
}

.ptm-text-danger {
    color: #dc3545;
}

.ptm-text-warning {
    color: #ffc107;
}

/* Account Footer */
.ptm-account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.ptm-account-footer small {
    color: #666;
    font-size: 12px;
}

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

.ptm-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.ptm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptm-modal-close:hover {
    color: #000;
}

/* Form */
.ptm-form-group {
    padding: 0 24px 20px;
}

.ptm-form-group:last-child {
    padding-bottom: 24px;
}

.ptm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ptm-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.ptm-form-group input:focus {
    outline: none;
    border-color: #0066ff;
}

#ptm-add-account-message {
    margin-top: 16px;
}

.ptm-success {
    color: #28a745;
    background: #d4edda;
    padding: 12px;
    border-radius: 6px;
}

.ptm-error {
    color: #dc3545;
    background: #f8d7da;
    padding: 12px;
    border-radius: 6px;
}

.ptm-info {
    color: #0066ff;
    background: #e7f3ff;
    padding: 12px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .ptm-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .ptm-dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .ptm-balance-grid {
        grid-template-columns: 1fr;
    }
}
