/* css/style.css */
/*
.sap-file-tracker-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
    max-width: 600px;
    min-width: 400px;
}
*/
.sap-file-tracker-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;  /* Reduced from 12px to 10px */
    align-items: center;
    margin: 20px 0;
    max-width: 600px;
    min-width: 400px;
}

.sap-file-tracker-form .input-group {
    flex: 1;
    min-width: 200px;
    margin: 0;
    display: flex;
    align-items: center;
}

.sap-file-tracker-form input {
    width: 350px;
    padding: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    font-size: 14px;
    height: 42px;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

.sap-file-tracker-form input:focus {
    outline: none;
    border-color: #EE7E2A;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(238, 126, 42, 0.1);
}

.sap-file-tracker-form button {
    padding: 12px 40px;
    background-color: #EE7E2A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 42px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(238, 126, 42, 0.2);
}

.sap-file-tracker-form button:hover {
    background-color: #e67422;
    box-shadow: 0 4px 8px rgba(238, 126, 42, 0.3);
}

/* Results Modal */
.sap-file-tracker-results {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 800px;
    width: 90%;
    max-height: 75vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
}

.sap-file-tracker-results.active {
    display: block;
}

/* Overlay */
.sap-file-tracker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.sap-file-tracker-overlay.active {
    display: block;
}

/* Results Content */
.results-content {
    padding: 20px;
    max-height: calc(70vh - 60px);
    overflow-y: auto;
}

/* Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    position: relative;
}

.results-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.close-results {
    background: #EE7E2A;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    line-height: 1;
    position: absolute;
    right: -10px;
    top: -10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.close-results:hover {
    background-color: #d49769;
}

/* Messages */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Status Cards */
.status-card {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #EE7E2A;
}

.status-card h4 {
    color: #5f2a01;
    margin-bottom: 10px;
}

.status-card p {
    margin: 5px 0;
    color: #666;
}

.date {
    color: #888;
    font-size: 0.9em;
}

/* Custom Scrollbar */
.results-content::-webkit-scrollbar {
    width: 8px;
}

.results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.results-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.results-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading States and Animations */
@keyframes pulse {
    0% {
        background-color: #cccccc;
    }
    50% {
        background-color: #EE7E2A;
    }
    100% {
        background-color: #cccccc;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.sap-file-tracker-form button.checking {
    animation: pulse 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.sap-file-tracker-form button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media screen and (max-width: 480px) {
    .sap-file-tracker-form {
        flex-direction: column;
        min-width: unset;
    }
    
    .sap-file-tracker-form .input-group {
        width: 100%;
    }
    
    .sap-file-tracker-form input {
        width: 100%;
    }
    
    .sap-file-tracker-form button {
        width: 100%;
    }

    .sap-file-tracker-results {
        top: 10%;
        width: 95%;
    }
    
    .results-content {
        padding: 15px;
    }
}

.sap-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Notification Styles */
.sap-notification {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid #EE7E2A;
}

.sap-notification.visible {
    transform: translateX(0);
    opacity: 1;
}

.sap-notification.success {
    border-color: #28a745;
}

.sap-notification.success .notification-icon:before {
    content: "✓";
    color: #28a745;
}

.sap-notification.error {
    border-color: #dc3545;
}

.sap-notification.error .notification-icon:before {
    content: "✕";
    color: #dc3545;
}

.sap-notification.info {
    border-color: #17a2b8;
}

.sap-notification.info .notification-icon:before {
    content: "ℹ";
    color: #17a2b8;
}

.notification-icon {
    margin-right: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
    line-height: 1;
}

.notification-close:hover {
    color: #333;
}

/* Responsive styling */
@media screen and (max-width: 480px) {
    .sap-notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .sap-notification {
        width: 100%;
    }
}