/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    overflow-x: auto;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.login-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="number"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn.secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #e1e5e9;
}

.btn.secondary:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.btn.warning {
    background: #ff6b6b;
    color: white;
}

.btn.warning:hover {
    background: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
    margin-left: 10px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Header */
.header {
    background: white;
    padding: 20px 2.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.header h1 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 700;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-info span {
    color: #666;
    font-weight: 500;
}

/* Container */
.container {
    width: 95%;
    max-width: none;
    margin: 0 auto;
    padding: 40px 2.5%;
    min-width: 300px;
}

/* Section */
.section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.peer-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Interfaces Grid */
.interfaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.interface-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interface-card.interface-active {
    border-color: rgba(40, 167, 69, 0.3);
}

.interface-card.interface-inactive {
    border-color: rgba(220, 53, 69, 0.3);
}

.interface-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    border-radius: 13px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.interface-card.interface-active::before {
    background: #28a745;
}

.interface-card.interface-inactive::before {
    background: #dc3545;
}

.interface-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.interface-card.interface-active:hover {
    border-color: #28a745;
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.2);
}

.interface-card.interface-inactive:hover {
    border-color: #dc3545;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.2);
}

.interface-card h3 {
    color: #667eea;
    margin: 0 0 auto 0;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
    line-height: 1.2;
}

.interface-card .interface-info {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.interface-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

/* Interface Tabs */
.interface-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab:hover:not(.active) {
    background: #e9ecef;
    border-color: #667eea;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    gap: 20px;
}

.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    min-width: 300px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-select,
.page-size-select {
    padding: 10px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.table-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.peers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1000px;
}

.peers-table th,
.peers-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.peers-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.peers-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.peers-table th.sortable:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.sort-indicator {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.7;
}

.sort-indicator::before {
    content: '↕';
}

.sort-indicator.asc::before {
    content: '↑';
}

.sort-indicator.desc::before {
    content: '↓';
}

.peers-table tbody tr:hover {
    background: #f8f9fa;
}

.peers-table tbody tr.selected {
    background: #e3f2fd;
}

/* Zebra-Streifen für bessere Lesbarkeit */
.peers-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.peers-table tbody tr:nth-child(even):hover {
    background: #e9ecef;
}

.peers-table .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.peers-table .public-key {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-column {
    width: 200px;
    text-align: center;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.table-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Checkbox Styles */
.checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15px auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    max-width: 1000px;
    max-height: 95vh;
}

/* Modal Header bleibt fix */
.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Modal Content scrollbar */
.modal form,
.peer-details,
.bulk-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px 30px;
}

.modal-header h3 {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.modal form {
    padding: 20px 30px 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-grid .input-group:nth-child(n+5) {
    grid-column: 1 / -1;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Bulk Operations */
.bulk-content {
    padding: 20px 30px 30px;
}

.bulk-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Peer Details */
.peer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.details-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Config Bereich mit Scrolling */
.details-section pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    overflow: auto;
    border: 2px solid #e1e5e9;
    max-height: 400px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Loading-Zustand für Config */
.details-section pre.loading {
    color: #667eea;
    font-style: italic;
    text-align: center;
    padding: 40px 15px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.config-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.config-actions .btn {
    flex: 1;
    min-width: 140px;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    display: none; /* Initial versteckt */
}

.qr-container canvas {
    max-width: 100%;
    height: auto;
}

.qr-container .qr-generated {
    display: inline-block;
    max-width: 100%;
}

.qr-container .qr-generated img,
.qr-container .qr-generated canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    border-left: 5px solid #667eea;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Error Messages */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

/* Additional IPs indicator */
.additional-ips {
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 20px 2.5%;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-controls {
        justify-content: space-between;
    }
    
    .search-input {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .header-info {
        width: 100%;
        justify-content: space-between;
    }

    .container {
        width: 95%;
        padding: 20px 2.5%;
    }

    .section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .header-actions {
        justify-content: space-between;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .peer-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .interfaces-grid {
        grid-template-columns: 1fr;
    }

    .config-actions {
        flex-direction: column;
    }

    .config-actions .btn {
        min-width: auto;
    }

    .modal-content {
        margin: 10px auto;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }

    .modal-header {
        padding: 15px 20px;
    }
    
    .modal form,
    .peer-details,
    .bulk-content {
        padding: 15px 20px 20px;
    }
    
    .peer-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .details-section pre {
        font-size: 0.8rem;
        max-height: 300px;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .config-actions .btn {
        flex: none;
    }

    .interface-tabs {
        flex-direction: column;
    }

    .tab {
        text-align: center;
    }

    .table-controls {
        padding: 15px;
    }

    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        min-width: auto;
    }

    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .table-actions {
        flex-direction: column;
        gap: 5px;
    }

    .table-actions .btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .peers-table {
        font-size: 14px;
    }

    .peers-table th,
    .peers-table td {
        padding: 10px 8px;
    }

    .public-key {
        max-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .container {
        width: 95%;
        padding: 15px 2.5%;
    }

    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
        max-height: calc(100vh - 10px);
        border-radius: 10px;
    }

    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal form,
    .peer-details,
    .bulk-content {
        padding: 10px 15px 15px;
    }
    
    .details-section pre {
        font-size: 0.75rem;
        padding: 10px;
        max-height: 250px;
    }

    .peers-table {
        font-size: 12px;
    }

    .peers-table th,
    .peers-table td {
        padding: 8px 6px;
    }
} 

/* Zoom level optimizations - ensure 75-95% width at all zoom levels */
@media (min-width: 1px) {
    .container {
        width: 95% !important;
        max-width: none !important;
        min-width: 75vw !important;
    }
    
    .section {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* Very wide screens - maintain 95% width */
@media (min-width: 1920px) {
    .container {
        width: 95%;
        padding: 40px 2.5%;
    }
}

/* Ultra-wide screens */
@media (min-width: 2560px) {
    .container {
        width: 95%;
        padding: 40px 2.5%;
    }
} 

@media (max-width: 480px) {
    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
        max-height: calc(100vh - 10px);
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal form,
    .peer-details,
    .bulk-content {
        padding: 10px 15px 15px;
    }
    
    .details-section pre {
        font-size: 0.75rem;
        padding: 10px;
        max-height: 250px;
    }
}

/* Status-Punkte für Peer-Verbindungsstatus */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Status-Farben */
.status-connected {
    background-color: #22c55e; /* Grün - verbunden */
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.5);
}

.status-idle {
    background-color: #f59e0b; /* Orange - idle */
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

.status-disconnected {
    background-color: #ef4444; /* Rot - getrennt */
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

.status-disabled {
    background-color: #374151; /* Schwarz - deaktiviert */
    box-shadow: 0 0 4px rgba(55, 65, 81, 0.5);
}

.status-no-connection {
    background-color: #ffffff; /* Weiß - keine Verbindung */
    border: 1px solid #6b7280;
    box-shadow: 0 0 4px rgba(107, 114, 128, 0.3);
}

/* SSL Certificate Modal */
.certificate-warning {
    max-width: none;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.warning-message p {
    margin: 0 0 10px 0;
    color: #856404;
}

.warning-message p:last-child {
    margin-bottom: 0;
}

.certificate-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.certificate-details h4 {
    margin: 0 0 15px 0;
    color: #495057;
}

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

.cert-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.cert-details-table td:first-child {
    width: 150px;
    font-weight: 500;
    color: #495057;
}

.cert-fingerprint {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 4px;
}

.risk-explanation {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.risk-explanation h4 {
    margin: 0 0 15px 0;
    color: #721c24;
}

.risk-explanation ul {
    margin: 0;
    padding-left: 20px;
    color: #721c24;
}

.risk-explanation li {
    margin-bottom: 8px;
}

.certificate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.certificate-actions .btn {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.certificate-actions .btn.warning {
    background: #ffc107;
    color: #000;
    border: 1px solid #ffc107;
}

.certificate-actions .btn.warning:hover {
    background: #ffb300;
    border-color: #ffb300;
}

.certificate-actions .btn.danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.certificate-actions .btn.danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.certificate-actions .btn.info {
    background: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.certificate-actions .btn.info:hover {
    background: #138496;
    border-color: #138496;
}

/* Responsive Certificate Modal */
@media (max-width: 768px) {
    .certificate-actions {
        flex-direction: column;
    }
    
    .certificate-actions .btn {
        max-width: none;
        width: 100%;
    }
    
    .cert-details-table td:first-child {
        width: 120px;
        font-size: 0.9rem;
    }
    
    .cert-fingerprint {
        font-size: 0.8rem;
    }
} 