﻿/* Transformer Details Page Styles */
.TDPContainer {
    max-width: 75%;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.TDPHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.TDPTitle {
    color: #1a5a96;
    font-weight: 600;
    margin: 0;
    font-size: 1.8rem;
}

.TDPButtonGroup {
    display: flex;
    gap: 10px;
}

.TDPButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 90px;
    text-align: center;
}

.TDPButton-Primary {
    background-color: #1a5a96;
    color: white;
}

    .TDPButton-Primary:hover {
        background-color: #124672;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(26, 90, 150, 0.2);
    }

.TDPButton-Secondary {
    background-color: #6c757d;
    color: white;
}

    .TDPButton-Secondary:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(108, 117, 125, 0.2);
    }

.TDPDivider {
    height: 2px;
    background: linear-gradient(to right, #1a5a96, #e0e0e0);
    margin-bottom: 1.5rem;
    border: none;
}

.TDPLoading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.TDPSpinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid rgba(26, 90, 150, 0.1);
    border-right-color: #1a5a96;
    border-radius: 50%;
    animation: TDPSpin 1s linear infinite;
}

@keyframes TDPSpin {
    to {
        transform: rotate(360deg);
    }
}

.TDPAlertDanger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #dc3545;
}

.TDPSection {
    margin-bottom: 1.5rem;
}

.TDPCard {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

    .TDPCard:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.TDPCardHeader {
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.TDPCardHeader-General {
    background: linear-gradient(135deg, #1a5a96, #1171c3);
    color: white;
    border-bottom: 3px solid #0d4777;
}

.TDPCardHeader-TapChanger {
    background: linear-gradient(135deg, #f6b73c, #e39f18);
    color: white;
    border-bottom: 3px solid #d68c0c;
}

.TDPCardHeader-DGA {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-bottom: 3px solid #106e7d;
}

.TDPCardHeader-Plan {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border-bottom: 3px solid #186429;
}

.TDPCardHeader-Audit {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border-bottom: 3px solid #4b545c;
}

.TDPCardHeaderTitle {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.TDPCardBody {
    padding: 1.25rem;
    background-color: #ffffff;
}

.TDPRow {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.TDPCol {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .TDPCol-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .TDPCol-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

.TDPFieldLabel {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.TDPFieldValue {
    color: #333;
    margin: 0;
    font-size: 1rem;
}

.TDPFieldValueMuted {
    color: #6c757d;
    font-style: italic;
}

.TDPSmallText {
    font-size: 0.85rem;
    color: #666;
}

.TDPBadge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.TDPReportLink {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #1a5a96;
    color: #1a5a96;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .TDPReportLink:hover {
        background-color: #1a5a96;
        color: white;
    }

.TDPReportIcon {
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .TDPContainer {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .TDPContainer {
        max-width: 100%;
        padding: 10px;
    }

    .TDPHeader {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .TDPButtonGroup {
        width: 100%;
    }

    .TDPButton {
        flex: 1;
    }
}
