/* PayPoint Components CSS */

/* Modals */
.pp-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.15);
    overflow: hidden;
}

.pp-modal .modal-header {
    background-color: var(--paypoint-primary);
    color: white;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.pp-modal .modal-header .modal-title {
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pp-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.pp-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.pp-modal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
}

.pp-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
}

.pp-modal .modal-footer button {
    min-width: 120px;
    border-radius: 6px;
    font-weight: 500;
}

/* Toast Notifications */
.toast {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.toast-body {
    padding: 0.75rem 1rem 1rem;
}

/* Error Page */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 2rem;
}

.error-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.1);
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.error-icon {
    font-size: 3.5rem;
    color: var(--paypoint-secondary);
    margin-bottom: 1.5rem;
}

.error-card h1 {
    color: var(--paypoint-primary);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--paypoint-muted);
    margin-bottom: 2rem;
}

.error-details {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.error-details code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.development-info {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    text-align: left;
}

.development-info h3 {
    font-size: 1.25rem;
    color: var(--paypoint-primary);
    margin-bottom: 1rem;
}

/* Enhanced Table with PayPoint Styling */
.pp-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08);
    margin-bottom: 2rem;
}

.pp-table thead {
    background: linear-gradient(90deg, var(--paypoint-primary), #003399);
}

.pp-table thead th {
    color: white;
    font-weight: 500;
    border: none;
    padding: 1rem 1.25rem;
    position: relative;
}

.pp-table thead th:after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.pp-table thead th:last-child:after {
    display: none;
}

.pp-table tbody tr {
    transition: background-color 0.2s;
}

.pp-table tbody tr:hover {
    background-color: rgba(0, 35, 102, 0.03);
}

.pp-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: rgba(0, 35, 102, 0.05);
}

.pp-table .table-action-btn {
    color: var(--paypoint-primary);
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.pp-table .table-action-btn:hover {
    background-color: rgba(0, 35, 102, 0.1);
    color: var(--paypoint-primary);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-indicator:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-success {
    background-color: rgba(80, 184, 72, 0.1);
    color: var(--paypoint-success);
}

.status-success:before {
    background-color: var(--paypoint-success);
}

.status-warning {
    background-color: rgba(255, 199, 44, 0.1);
    color: var(--paypoint-warning);
}

.status-warning:before {
    background-color: var(--paypoint-warning);
}

.status-danger {
    background-color: rgba(237, 27, 36, 0.1);
    color: var(--paypoint-secondary);
}

.status-danger:before {
    background-color: var(--paypoint-secondary);
}

.status-info {
    background-color: rgba(80, 179, 232, 0.1);
    color: var(--paypoint-accent);
}

.status-info:before {
    background-color: var(--paypoint-accent);
}

/* Enhanced Progress Bars */
.pp-progress {
    height: 0.75rem;
    border-radius: 6px;
    background-color: rgba(0, 35, 102, 0.05);
    margin: 0.5rem 0;
    overflow: hidden;
}

.pp-progress-bar {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--paypoint-primary), #003399);
    transition: width 0.5s ease;
}

.pp-progress-bar.progress-success {
    background: linear-gradient(90deg, #429a3c, var(--paypoint-success));
}

.pp-progress-bar.progress-warning {
    background: linear-gradient(90deg, #e6b325, var(--paypoint-warning));
}

.pp-progress-bar.progress-danger {
    background: linear-gradient(90deg, #d01820, var(--paypoint-secondary));
}

/* Data visualization components */
.pp-stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 6px 18px rgba(0, 35, 102, 0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pp-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 35, 102, 0.12);
}

.pp-stat-title {
    font-size: 0.9rem;
    color: var(--paypoint-muted);
    margin-bottom: 0.75rem;
}

.pp-stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--paypoint-primary);
    margin-bottom: 0.5rem;
}

.pp-stat-trend {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.pp-stat-trend.positive {
    color: var(--paypoint-success);
}

.pp-stat-trend.negative {
    color: var(--paypoint-secondary);
}

.pp-stat-trend i {
    margin-right: 0.25rem;
}

/* Weather forecast table styling */
.weather-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 35, 102, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.weather-card-header {
    background: linear-gradient(90deg, var(--paypoint-primary), #003399);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.weather-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.weather-card-body {
    padding: 0;
}

.weather-table {
    margin-bottom: 0;
}

.weather-table thead th {
    background-color: rgba(0, 35, 102, 0.05);
    color: var(--paypoint-primary);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.weather-table tbody tr {
    transition: background-color 0.2s;
}

.weather-table tbody tr:hover {
    background-color: rgba(0, 35, 102, 0.02);
}

.weather-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: rgba(0, 35, 102, 0.05);
}

.weather-summary {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
}

.weather-summary.cold {
    background-color: rgba(80, 179, 232, 0.1);
    color: var(--paypoint-accent);
}

.weather-summary.cool {
    background-color: rgba(80, 184, 72, 0.1);
    color: var(--paypoint-success);
}

.weather-summary.warm {
    background-color: rgba(255, 199, 44, 0.1);
    color: var(--paypoint-warning);
}

.weather-summary.hot {
    background-color: rgba(237, 27, 36, 0.1);
    color: var(--paypoint-secondary);
}

/* Chart Component */
.pp-chart-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.pp-chart-header {
    margin-bottom: 1rem;
}

.pp-chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--paypoint-primary);
    margin: 0;
}

.pp-chart-subtitle {
    font-size: 0.875rem;
    color: var(--paypoint-muted);
    margin: 0.25rem 0 0 0;
}

.pp-chart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.pp-chart-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 35, 102, 0.05);
    font-size: 0.8125rem;
}

.chart-compact {
    padding: 1rem;
}

.chart-compact .pp-chart-title {
    font-size: 1rem;
}

.chart-compact .pp-chart-body {
    min-height: 150px;
}

/* Alert Component */
.pp-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pp-alert-success {
    background-color: rgba(80, 184, 72, 0.1);
    color: var(--paypoint-success);
    border-left: 4px solid var(--paypoint-success);
}

.pp-alert-warning {
    background-color: rgba(255, 199, 44, 0.1);
    color: #856404;
    border-left: 4px solid var(--paypoint-warning);
}

.pp-alert-danger {
    background-color: rgba(237, 27, 36, 0.1);
    color: var(--paypoint-secondary);
    border-left: 4px solid var(--paypoint-secondary);
}

.pp-alert-info {
    background-color: rgba(80, 179, 232, 0.1);
    color: var(--paypoint-primary);
    border-left: 4px solid var(--paypoint-accent);
}

.pp-alert .btn-close {
    color: currentColor;
    opacity: 0.7;
}

.pp-alert .btn-close:hover {
    opacity: 1;
}

/* Custom Button Styling */
.btn-rounded {
    border-radius: 50px !important;
}

.btn-primary, .btn-outline-primary:hover {
    background-image: linear-gradient(135deg, var(--paypoint-primary), #003399);
    border-color: var(--paypoint-primary);
}

.btn-secondary, .btn-outline-secondary:hover {
    background-image: linear-gradient(135deg, var(--paypoint-secondary), #d01820);
    border-color: var(--paypoint-secondary);
}

.btn:active {
    transform: scale(0.98);
}

.btn.disabled, .btn:disabled {
    opacity: 0.65;
    pointer-events: none;
}

/* PayPoint Card Component */
.pp-card {
    background-color: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 35, 102, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pp-card-hoverable:hover {
    transform: translateY(-5px);
}

.pp-card-shadow {
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.08);
    border: none;
}

.pp-card-img {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.pp-card-img img {
    transition: transform 0.5s ease;
}

.pp-card-hoverable:hover .pp-card-img img {
    transform: scale(1.05);
}

.pp-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 35, 102, 0.05);
    background-color: white;
}

.pp-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--paypoint-primary);
}

.pp-card-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--paypoint-muted);
}

.pp-card-body {
    padding: 1.5rem;
}

.pp-card-footer {
    padding: 1.25rem 1.5rem;
    background-color: rgba(0, 35, 102, 0.02);
    border-top: 1px solid rgba(0, 35, 102, 0.05);
}
