/** * Dashboard Styles * * Styles for the Double Opt-In Dashboard page. * * @package Forge12\DoubleOptIn * @since 4.0.0 */ /* ========================================================================== Dashboard Header ========================================================================== */ .doi-dashboard-header { margin-bottom: 30px; } .doi-dashboard-header h1 { margin: 0 0 5px 0; font-size: 28px; font-weight: 600; color: #1d2327; } .doi-dashboard-header p { margin: 0; color: #646970; font-size: 14px; } /* ========================================================================== Stats Grid ========================================================================== */ .doi-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } /* ========================================================================== Stat Cards ========================================================================== */ .doi-stat-card { background: #fff; border: 1px solid #c3c4c7; border-radius: 8px; padding: 24px; text-align: center; transition: all 0.2s ease; position: relative; overflow: hidden; } .doi-stat-card:hover { border-color: #2271b1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .doi-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #c3c4c7; } /* Stat Card Color Variants */ .doi-stat-card.doi-stat-primary::before { background: linear-gradient(135deg, #2271b1, #135e96); } .doi-stat-card.doi-stat-success::before { background: linear-gradient(135deg, #00a32a, #007017); } .doi-stat-card.doi-stat-warning::before { background: linear-gradient(135deg, #dba617, #996800); } .doi-stat-card.doi-stat-info::before { background: linear-gradient(135deg, #72aee6, #2271b1); } /* ========================================================================== Stat Icons ========================================================================== */ .doi-stat-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; } .doi-stat-primary .doi-stat-icon { background: rgba(34, 113, 177, 0.1); color: #2271b1; } .doi-stat-success .doi-stat-icon { background: rgba(0, 163, 42, 0.1); color: #00a32a; } .doi-stat-warning .doi-stat-icon { background: rgba(219, 166, 23, 0.1); color: #996800; } .doi-stat-info .doi-stat-icon { background: rgba(114, 174, 230, 0.1); color: #2271b1; } /* ========================================================================== Stat Values ========================================================================== */ .doi-stat-value { font-size: 32px; font-weight: 700; color: #1d2327; line-height: 1.2; margin-bottom: 4px; } .doi-stat-label { font-size: 13px; color: #646970; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; } /* ========================================================================== Section Boxes ========================================================================== */ .doi-section { background: #fff; border: 1px solid #c3c4c7; border-radius: 8px; margin-bottom: 24px; overflow: hidden; } .doi-section-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e0e0e0; background: #f6f7f7; } .doi-section-header h2 { margin: 0; font-size: 15px; font-weight: 600; color: #1d2327; display: flex; align-items: center; gap: 8px; } .doi-section-header h2 .dashicons { color: #646970; } .doi-section-header .doi-view-all { font-size: 13px; text-decoration: none; color: #2271b1; font-weight: 500; } .doi-section-header .doi-view-all:hover { color: #135e96; } /* ========================================================================== Tables ========================================================================== */ .doi-table { width: 100% !important; border-collapse: collapse; } .doi-table th { text-align: left; padding: 12px 20px; font-size: 12px; font-weight: 600; color: #646970; text-transform: uppercase; letter-spacing: 0.5px; background: #f9f9f9; border-bottom: 1px solid #e0e0e0; } .doi-table td { padding: 14px 20px; font-size: 14px; color: #1d2327; border-bottom: 1px solid #f0f0f0; vertical-align: middle; } .doi-table tr:last-child td { border-bottom: none; } .doi-table tr:hover td { background: #f9f9f9; } .doi-table a { color: #2271b1; text-decoration: none; font-weight: 500; } .doi-table a:hover { color: #135e96; text-decoration: underline; } .doi-table .doi-number { font-weight: 600; font-variant-numeric: tabular-nums; } /* ========================================================================== Badges ========================================================================== */ .doi-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; gap: 4px; } .doi-badge-confirmed { background: rgba(0, 163, 42, 0.1); color: #007017; } .doi-badge-pending { background: rgba(219, 166, 23, 0.15); color: #996800; } /* ========================================================================== Rate Bar ========================================================================== */ .doi-rate-bar { display: flex; align-items: center; gap: 10px; } .doi-rate-bar-bg { flex: 1; height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; max-width: 80px; } .doi-rate-bar-fill { height: 100%; background: linear-gradient(90deg, #00a32a, #00c853); border-radius: 3px; transition: width 0.3s ease; } .doi-rate-value { font-weight: 600; font-size: 13px; min-width: 40px; } /* ========================================================================== Empty State ========================================================================== */ .doi-empty-state { padding: 40px 20px; text-align: center; color: #646970; } .doi-empty-state .dashicons { font-size: 48px; width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; } /* ========================================================================== Grid Layouts ========================================================================== */ .doi-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; } /* ========================================================================== Responsive ========================================================================== */ @media (max-width: 782px) { .doi-stats-grid { grid-template-columns: repeat(2, 1fr); } .doi-grid-2 { grid-template-columns: 1fr; } }